@@ -325,7 +325,6 @@ class QueryBuilder:
325
325
Supported arithmetic operations when projection or filtering:
326
326
327
327
* Binary arithmetic: +, -, *, /
328
-
329
328
* Unary arithmetic: -, abs
330
329
331
330
Supported filtering operations:
@@ -337,11 +336,8 @@ class QueryBuilder:
337
336
>>> q = q[q["col"].isna()]
338
337
339
338
* Binary comparisons: <, <=, >, >=, ==, !=
340
-
341
339
* Unary NOT: ~
342
-
343
340
* Binary combinators: &, |, ^
344
-
345
341
* List membership: isin, isnotin (also accessible with == and !=)
346
342
347
343
isin/isnotin accept lists, sets, frozensets, 1D ndarrays, or *args unpacking. For example:
@@ -448,6 +444,7 @@ def groupby(self, name: str):
448
444
"""
449
445
Group symbol by column name. GroupBy operations must be followed by an aggregation operator. Currently the following five aggregation
450
446
operators are supported:
447
+
451
448
* "mean" - compute the mean of the group
452
449
* "sum" - compute the sum of the group
453
450
* "min" - compute the min of the group
@@ -574,21 +571,26 @@ def resample(
574
571
"""
575
572
Resample symbol on the index. Symbol must be datetime indexed. Resample operations must be followed by an
576
573
aggregation operator. Currently, the following 7 aggregation operators are supported:
574
+
577
575
* "mean" - compute the mean of the group
578
576
* "sum" - compute the sum of the group
579
577
* "min" - compute the min of the group
580
578
* "max" - compute the max of the group
581
579
* "count" - compute the count of group
582
580
* "first" - compute the first value in the group
583
581
* "last" - compute the last value in the group
582
+
584
583
Note that not all aggregators are supported with all column types.:
584
+
585
585
* Numeric columns - support all aggregators
586
586
* Bool columns - support all aggregators
587
587
* String columns - support count, first, and last aggregators
588
588
* Datetime columns - support all aggregators EXCEPT sum
589
+
589
590
Note that time-buckets which contain no index values in the symbol will NOT be included in the returned
590
591
DataFrame. This is not the same as Pandas default behaviour.
591
592
Resampling is currently not supported with:
593
+
592
594
* Dynamic schema where an aggregation column is missing from one or more of the row-slices.
593
595
* Sparse data.
594
596
@@ -619,6 +621,7 @@ def resample(
619
621
The closed or label arguments are not one of "left" or "right"
620
622
SchemaException
621
623
Raised on call to read if:
624
+
622
625
* If the aggregation specified is not compatible with the type of the column being aggregated as
623
626
specified above.
624
627
* The library has dynamic schema enabled, and at least one of the columns being aggregated is missing
0 commit comments