Skip to content

Commit d1490a2

Browse files
committed
lint
1 parent 5bec6b3 commit d1490a2

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
@@ -328,7 +328,9 @@ resulting dtypes to same as the input dtype; previously this would coerce to a d
328328

329329
.. ipython:: python
330330
331-
df = pd.DataFrame({'A': pd.Series([1, np.nan, 3], dtype=pd.SparseDtype('float64', np.nan))})
331+
df = pd.DataFrame(
332+
{'A': pd.Series([1, np.nan, 3],
333+
dtype=pd.SparseDtype('float64', np.nan))})
332334
df
333335
df.dtypes
334336
@@ -356,8 +358,9 @@ Previously, columns that were categorical, but not the groupby key(s) would be c
356358

357359
.. ipython:: python
358360
359-
df = pd.DataFrame({'payload': [-1,-2,-1,-2],
360-
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
361+
df = pd.DataFrame(
362+
{'payload': [-1, -2, -1, -2],
363+
'col': pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)})
361364
df
362365
df.dtypes
363366

pandas/core/groupby/groupby.py

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

0 commit comments

Comments
 (0)