Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
amend doc example
  • Loading branch information
TrevorBergeron committed Apr 18, 2024
commit dc85f8fd31db4ce962970f2ab44ac11bab6b5cbc
4 changes: 3 additions & 1 deletion bigframes/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,9 @@ def median(
else:
frame = self._drop_non_numeric()
if exact:
return frame.quantile()
result = frame.quantile()
result.name = None
return result
else:
block = frame._block.aggregate_all_and_stack(agg_ops.median_op)
return bigframes.series.Series(block.select_column("values"))
Expand Down
6 changes: 3 additions & 3 deletions third_party/bigframes_vendored/pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4500,9 +4500,9 @@ def median(self, *, numeric_only: bool = False, exact: bool = True):
Finding the median value of each column.

>>> df.median()
A 1
B 2
dtype: Int64
A 2.0
B 3.0
dtype: Float64

Args:
numeric_only (bool. default False):
Expand Down