Skip to content

Commit 70da106

Browse files
committed
REF: Created pandas.core.arrays
Moved pandas.core.categorical to arrays.
1 parent 4ebdc50 commit 70da106

23 files changed

+2379
-2356
lines changed

pandas/_libs/parsers.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ from pandas.core.dtypes.common import (
5555
is_bool_dtype, is_object_dtype,
5656
is_datetime64_dtype,
5757
pandas_dtype)
58-
from pandas.core.categorical import Categorical
58+
from pandas.core.arrays import Categorical
5959
from pandas.core.dtypes.concat import union_categoricals
6060
import pandas.io.common as com
6161

pandas/compat/pickle_compat.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ def load_reduce(self):
108108
('pandas.tseries.index', 'DatetimeIndex'):
109109
('pandas.core.indexes.datetimes', 'DatetimeIndex'),
110110
('pandas.tseries.period', 'PeriodIndex'):
111-
('pandas.core.indexes.period', 'PeriodIndex')
111+
('pandas.core.indexes.period', 'PeriodIndex'),
112+
113+
# 19269, arrays moving
114+
('pandas.core.categorical', 'Categorical'):
115+
('pandas.core.arrays', 'Categorical'),
112116
}
113117

114118

pandas/core/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from pandas.core.algorithms import factorize, unique, value_counts
88
from pandas.core.dtypes.missing import isna, isnull, notna, notnull
9-
from pandas.core.categorical import Categorical
9+
from pandas.core.arrays import Categorical
1010
from pandas.core.groupby import Grouper
1111
from pandas.io.formats.format import set_eng_float_format
1212
from pandas.core.index import (Index, CategoricalIndex, Int64Index,

pandas/core/arrays/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .categorical import Categorical # noqa

0 commit comments

Comments
 (0)