Skip to content

Commit 96853ec

Browse files
committed
lint
1 parent cbeb91e commit 96853ec

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/source/whatsnew/v0.25.0.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ resulting dtypes to same as the input dtype; previously this would coerce to a d
278278

279279
.. ipython:: python
280280
281-
df = pd.DataFrame({'A': pd.Series([1, np.nan, 3], dtype=pd.SparseDtype('float64', np.nan))})
281+
df = pd.DataFrame(
282+
{'A': pd.Series([1, np.nan, 3],
283+
dtype=pd.SparseDtype('float64', np.nan))})
282284
df
283285
df.dtypes
284286
@@ -306,8 +308,9 @@ Previously, columns that were categorical, but not the groupby key(s) would be c
306308

307309
.. ipython:: python
308310
309-
df = pd.DataFrame({'payload': [-1,-2,-1,-2],
310-
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
311+
df = pd.DataFrame(
312+
{'payload': [-1, -2, -1, -2],
313+
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
311314
df
312315
df.dtypes
313316

pandas/core/groupby/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ def median(self, **kwargs):
11841184
return self._cython_agg_general(
11851185
'median',
11861186
alt=lambda x,
1187-
axis: Series(x).median(**kwargs),
1187+
axis: Series(x).median(axis=axis, **kwargs),
11881188
**kwargs)
11891189
except GroupByError:
11901190
raise

0 commit comments

Comments
 (0)