File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ of ``object`` dtype. :attr:`Series.str` will now infer the dtype data *within* t
323
323
ufuncs on Extension Dtype
324
324
^^^^^^^^^^^^^^^^^^^^^^^^^
325
325
326
- Operations with ``numpy `` ufuncs on Extension Arrays, including Sparse Dtypes will now coerce the
326
+ Operations with ``numpy `` ufuncs on Extension Arrays, including Sparse Dtypes will now preserve the
327
327
resulting dtypes to same as the input dtype; previously this would coerce to a dense dtype. (:issue: `23743 `)
328
328
329
329
.. 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
@@ -53,7 +54,8 @@ def test_pivot_table(self):
53
54
'std' ,
54
55
'var' ,
55
56
'sem' ,
56
- 'median' ,
57
+ pytest .param ('median' , marks = pytest .mark .xfail (
58
+ not _np_version_under1p17 , reason = "fails on numpy > 1.16" )),
57
59
'first' ,
58
60
'last' ])
59
61
@pytest .mark .parametrize ('dropna' , [True , False ])
You can’t perform that action at this time.
0 commit comments