From 67b627717db2b0d6c1b3699d9384cc433c0b9af4 Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Sat, 21 Jul 2018 10:32:23 -0700 Subject: [PATCH] [REF] implement internals as dir (#21903) * implement internals as dir * move internals.py to internals/__init__.py unchanged --- pandas/core/{internals.py => internals/__init__.py} | 1 + pandas/tests/internals/test_internals.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) rename pandas/core/{internals.py => internals/__init__.py} (99%) diff --git a/pandas/core/internals.py b/pandas/core/internals/__init__.py similarity index 99% rename from pandas/core/internals.py rename to pandas/core/internals/__init__.py index 5a87a8368dc88..fde3aaa14ac5d 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import warnings import copy from warnings import catch_warnings diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 7fbf7ec05e91e..39418fb72bf4a 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -13,11 +13,12 @@ from pandas import (Index, MultiIndex, DataFrame, DatetimeIndex, Series, Categorical, TimedeltaIndex, SparseArray) from pandas.compat import OrderedDict, lrange -from pandas.core.internals import (BlockPlacement, SingleBlockManager, +from pandas.core.internals import (SingleBlockManager, make_block, BlockManager) import pandas.core.algorithms as algos import pandas.util.testing as tm import pandas as pd +from pandas._libs.internals import BlockPlacement from pandas.util.testing import (assert_almost_equal, assert_frame_equal, randn, assert_series_equal) from pandas.compat import zip, u