-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query operator #623
Comments
@priyankat99 you can't chain it but you can do this
|
This is quite old, but I'll still answer it as it can help others. The old query method with logical operators (is: "==", etc.) was deprecated in favor of a more powerful and chainable boolean operations approach. This new approach:
Here's how you can rewrite your filtering logic using the modern approach: const filtered = this.datapoints.query(
this.datapoints["ModelName"].eq("model")
.and(this.datapoints["Timestamp"].ge(start))
.and(this.datapoints["Timestamp"].le(end))
) |
i see querying by logical operators has been deprecated:
https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query#query-a-dataframe-using-logical-operators
is there a reason it was deprecated? i need to filter my DF to remove certain values like so:
was this logic deprecated because it is inefficient? im not sure how to achieve this with the updated logic in query.
any help or clarification would be appreciated!
The text was updated successfully, but these errors were encountered: