File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ of ``object`` dtype. :attr:`Series.str` will now infer the dtype data *within* t
273
273
ufuncs on Extension Dtype
274
274
^^^^^^^^^^^^^^^^^^^^^^^^^
275
275
276
- Operations with ``numpy `` ufuncs on Extension Arrays, including Sparse Dtypes will now coerce the
276
+ Operations with ``numpy `` ufuncs on Extension Arrays, including Sparse Dtypes will now preserve the
277
277
resulting dtypes to same as the input dtype; previously this would coerce to a dense dtype. (:issue: `23743 `)
278
278
279
279
.. ipython :: python
Original file line number Diff line number Diff line change 5
5
from io import StringIO
6
6
from shutil import get_terminal_size
7
7
from textwrap import dedent
8
- import warnings
9
8
from typing import Optional , Tuple
9
+ import warnings
10
10
11
11
import numpy as np
12
12
Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
import pandas as pd
5
+ from pandas import _np_version_under1p17
5
6
import pandas .util .testing as tm
6
7
7
8
@@ -51,7 +52,8 @@ def test_pivot_table(self):
51
52
'std' ,
52
53
'var' ,
53
54
'sem' ,
54
- 'median' ,
55
+ pytest .param ('median' , marks = pytest .mark .xfail (
56
+ not _np_version_under1p17 , reason = "fails on numpy > 1.16" )),
55
57
'first' ,
56
58
'last' ])
57
59
@pytest .mark .parametrize ('dropna' , [True , False ])
You can’t perform that action at this time.
0 commit comments