@@ -49,7 +49,8 @@ def any(self):
49
49
[2 rows x 2 columns]
50
50
51
51
Returns:
52
- Series or DataFrame: DataFrame or Series of boolean values,
52
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
53
+ DataFrame or Series of boolean values,
53
54
where a value is True if any element is True within its
54
55
respective group; otherwise False.
55
56
"""
@@ -87,7 +88,8 @@ def all(self):
87
88
[2 rows x 2 columns]
88
89
89
90
Returns:
90
- Series or DataFrame: DataFrame or Series of boolean values,
91
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
92
+ DataFrame or Series of boolean values,
91
93
where a value is True if all elements are True within its
92
94
respective group; otherwise False.
93
95
"""
@@ -126,7 +128,8 @@ def count(self):
126
128
[2 rows x 2 columns]
127
129
128
130
Returns:
129
- Series or DataFrame: Count of values within each group.
131
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
132
+ Count of values within each group.
130
133
"""
131
134
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
132
135
@@ -181,7 +184,8 @@ def mean(
181
184
Include only float, int, boolean columns.
182
185
183
186
Returns:
184
- pandas.Series or pandas.DataFrame: Mean of groups.
187
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
188
+ Mean of groups.
185
189
"""
186
190
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
187
191
@@ -228,7 +232,8 @@ def median(
228
232
Calculate the exact median instead of an approximation.
229
233
230
234
Returns:
231
- pandas.Series or pandas.DataFrame: Median of groups.
235
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
236
+ Median of groups.
232
237
"""
233
238
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
234
239
@@ -259,7 +264,8 @@ def quantile(self, q=0.5, *, numeric_only: bool = False):
259
264
Include only `float`, `int` or `boolean` data.
260
265
261
266
Returns:
262
- Series or DataFrame: Return type determined by caller of GroupBy object.
267
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
268
+ Return type determined by caller of GroupBy object.
263
269
"""
264
270
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
265
271
@@ -305,7 +311,8 @@ def std(
305
311
Include only `float`, `int` or `boolean` data.
306
312
307
313
Returns:
308
- Series or DataFrame: Standard deviation of values within each group.
314
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
315
+ Standard deviation of values within each group.
309
316
"""
310
317
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
311
318
@@ -351,7 +358,7 @@ def var(
351
358
Include only `float`, `int` or `boolean` data.
352
359
353
360
Returns:
354
- Series or DataFrame
361
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
355
362
Variance of values within each group.
356
363
"""
357
364
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
@@ -388,7 +395,7 @@ def skew(
388
395
Include only `float`, `int` or `boolean` data.
389
396
390
397
Returns:
391
- Series or DataFrame
398
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
392
399
Variance of values within each group.
393
400
"""
394
401
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
@@ -421,7 +428,7 @@ def kurt(
421
428
Include only `float`, `int` or `boolean` data.
422
429
423
430
Returns:
424
- Series or DataFrame
431
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
425
432
Variance of values within each group.
426
433
"""
427
434
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
@@ -454,7 +461,7 @@ def kurtosis(
454
461
Include only `float`, `int` or `boolean` data.
455
462
456
463
Returns:
457
- Series or DataFrame
464
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
458
465
Variance of values within each group.
459
466
"""
460
467
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
@@ -502,7 +509,8 @@ def sum(
502
509
than ``min_count`` and non-NA values are present, the result will be NA.
503
510
504
511
Returns:
505
- Series or DataFrame: Computed sum of values within each group.
512
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
513
+ Computed sum of values within each group.
506
514
"""
507
515
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
508
516
@@ -534,7 +542,8 @@ def prod(self, numeric_only: bool = False, min_count: int = 0):
534
542
than ``min_count`` and non-NA values are present, the result will be NA.
535
543
536
544
Returns:
537
- Series or DataFrame: Computed prod of values within each group.
545
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
546
+ Computed prod of values within each group.
538
547
"""
539
548
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
540
549
@@ -582,7 +591,8 @@ def min(
582
591
than ``min_count`` and non-NA values are present, the result will be NA.
583
592
584
593
Returns:
585
- Series or DataFrame: Computed min of values within each group.
594
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
595
+ Computed min of values within each group.
586
596
"""
587
597
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
588
598
@@ -629,7 +639,8 @@ def max(
629
639
than ``min_count`` and non-NA values are present, the result will be NA.
630
640
631
641
Returns:
632
- Series or DataFrame: Computed max of values within each group.
642
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
643
+ Computed max of values within each group.
633
644
"""
634
645
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
635
646
@@ -667,7 +678,8 @@ def cumcount(self, ascending: bool = True):
667
678
If False, number in reverse, from length of group - 1 to 0.
668
679
669
680
Returns:
670
- Series: Sequence number of each element within each group.
681
+ bigframes.pandas.Series:
682
+ Sequence number of each element within each group.
671
683
"""
672
684
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
673
685
@@ -705,7 +717,8 @@ def cumprod(self, *args, **kwargs):
705
717
[3 rows x 2 columns]
706
718
707
719
Returns:
708
- Series or DataFrame: Cumulative product for each group.
720
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
721
+ Cumulative product for each group.
709
722
"""
710
723
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
711
724
@@ -743,7 +756,8 @@ def cumsum(self, *args, **kwargs):
743
756
[3 rows x 2 columns]
744
757
745
758
Returns:
746
- Series or DataFrame: Cumulative sum for each group.
759
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
760
+ Cumulative sum for each group.
747
761
"""
748
762
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
749
763
@@ -781,7 +795,8 @@ def cummin(self, *args, numeric_only: bool = False, **kwargs):
781
795
[3 rows x 2 columns]
782
796
783
797
Returns:
784
- Series or DataFrame: Cumulative min for each group.
798
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
799
+ Cumulative min for each group.
785
800
"""
786
801
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
787
802
@@ -819,7 +834,8 @@ def cummax(self, *args, numeric_only: bool = False, **kwargs):
819
834
[3 rows x 2 columns]
820
835
821
836
Returns:
822
- Series or DataFrame: Cumulative max for each group.
837
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
838
+ Cumulative max for each group.
823
839
"""
824
840
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
825
841
@@ -866,7 +882,8 @@ def diff(self):
866
882
[7 rows x 2 columns]
867
883
868
884
Returns:
869
- Series or DataFrame: First differences.
885
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
886
+ First differences.
870
887
"""
871
888
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
872
889
@@ -910,7 +927,8 @@ def shift(self, periods: int = 1):
910
927
Number of periods to shift.
911
928
912
929
Returns:
913
- Series or DataFrame: Object shifted within each group.
930
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
931
+ Object shifted within each group.
914
932
"""
915
933
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
916
934
@@ -947,7 +965,8 @@ def rolling(self, *args, **kwargs):
947
965
to the size of the window.
948
966
949
967
Returns:
950
- Series or DataFrame: Return a new grouper with our rolling appended.
968
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
969
+ Return a new grouper with our rolling appended.
951
970
"""
952
971
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
953
972
@@ -973,7 +992,8 @@ def expanding(self, *args, **kwargs):
973
992
dtype: Int64
974
993
975
994
Returns:
976
- Series or DataFrame: An expanding grouper, providing expanding functionality per group.
995
+ bigframes.pandas.DataFrame or bigframes.pandas.Series:
996
+ An expanding grouper, providing expanding functionality per group.
977
997
"""
978
998
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
979
999
@@ -1007,7 +1027,8 @@ def agg(self, func):
1007
1027
- list of function names, e.g. ``['sum', 'mean']``
1008
1028
1009
1029
Returns:
1010
- Series or DataFrame
1030
+ bigframes.pandas.Series:
1031
+ A BigQuery Series.
1011
1032
"""
1012
1033
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
1013
1034
@@ -1039,7 +1060,8 @@ def aggregate(self, func):
1039
1060
- list of function names, e.g. ``['sum', 'mean']``
1040
1061
1041
1062
Returns:
1042
- Series or DataFrame
1063
+ bigframes.pandas.Series:
1064
+ A BigQuery Series.
1043
1065
"""
1044
1066
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
1045
1067
@@ -1061,7 +1083,8 @@ def nunique(self):
1061
1083
dtype: Int64
1062
1084
1063
1085
Returns:
1064
- Series: Number of unique values within each group.
1086
+ bigframes.pandas.Series:
1087
+ Number of unique values within each group.
1065
1088
"""
1066
1089
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
1067
1090
@@ -1122,7 +1145,8 @@ def agg(self, func, **kwargs):
1122
1145
aggregations via Named Aggregation. See ``func`` entry.
1123
1146
1124
1147
Returns:
1125
- DataFrame
1148
+ bigframes.pandas.DataFrame:
1149
+ A BigQuery DataFrame.
1126
1150
"""
1127
1151
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
1128
1152
@@ -1181,7 +1205,8 @@ def aggregate(self, func, **kwargs):
1181
1205
aggregations via Named Aggregation. See ``func`` entry.
1182
1206
1183
1207
Returns:
1184
- DataFrame
1208
+ bigframes.pandas.DataFrame:
1209
+ A BigQuery DataFrame.
1185
1210
"""
1186
1211
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
1187
1212
@@ -1209,6 +1234,7 @@ def nunique(self):
1209
1234
[3 rows x 2 columns]
1210
1235
1211
1236
Returns:
1212
- DataFrame
1237
+ bigframes.pandas.DataFrame:
1238
+ Number of unique values within a BigQuery DataFrame.
1213
1239
"""
1214
1240
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
0 commit comments