Skip to content

Commit ad1838b

Browse files
committed
STYLE: remove use in pd.api.dtype in reshape.py (pandas-dev#39203)
1 parent d18860d commit ad1838b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asv_bench/benchmarks/reshape.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pandas as pd
77
from pandas import DataFrame, MultiIndex, date_range, melt, wide_to_long
8+
from pandas.api.types import CategoricalDtype
89

910

1011
class Melt:
@@ -196,7 +197,7 @@ def setup(self):
196197
categories = list(string.ascii_letters[:12])
197198
s = pd.Series(
198199
np.random.choice(categories, size=1000000),
199-
dtype=pd.api.types.CategoricalDtype(categories),
200+
dtype=CategoricalDtype(categories),
200201
)
201202
self.s = s
202203

0 commit comments

Comments
 (0)