Skip to content

Commit 111ad77

Browse files
committed
lint
1 parent b6a3eae commit 111ad77

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/source/whatsnew/v0.25.0.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ resulting dtypes to same as the input dtype; previously this would coerce to a d
164164

165165
.. ipython:: python
166166
167-
df = pd.DataFrame({'A': pd.Series([1, np.nan, 3], dtype=pd.SparseDtype('float64', np.nan))})
167+
df = pd.DataFrame(
168+
{'A': pd.Series([1, np.nan, 3],
169+
dtype=pd.SparseDtype('float64', np.nan))})
168170
df
169171
df.dtypes
170172
@@ -192,8 +194,9 @@ Previously, columns that were categorical, but not the groupby key(s) would be c
192194

193195
.. ipython:: python
194196
195-
df = pd.DataFrame({'payload': [-1,-2,-1,-2],
196-
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
197+
df = pd.DataFrame(
198+
{'payload': [-1, -2, -1, -2],
199+
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
197200
df
198201
df.dtypes
199202

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ def median(self, **kwargs):
11831183
return self._cython_agg_general(
11841184
'median',
11851185
alt=lambda x,
1186-
axis: Series(x).median(**kwargs),
1186+
axis: Series(x).median(axis=axis, **kwargs),
11871187
**kwargs)
11881188
except GroupByError:
11891189
raise

0 commit comments

Comments
 (0)