Skip to content

Commit 5cfa601

Browse files
committed
Add adbsolute imports, removed data_label method and remove stata from mypy.ini blacklist
1 parent 013f4b4 commit 5cfa601

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

mypy.ini

-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ ignore_errors=True
164164
[mypy-pandas.io.pytables]
165165
ignore_errors=True
166166

167-
[mypy-pandas.io.stata]
168-
ignore_errors=True
169-
170167
[mypy-pandas.plotting._core]
171168
ignore_errors=True
172169

pandas/io/stata.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@
3030
from pandas.core.dtypes.common import (
3131
ensure_object, is_categorical_dtype, is_datetime64_dtype)
3232

33-
from pandas import (
34-
DatetimeIndex, compat, concat, isna, to_datetime, to_timedelta)
33+
from pandas import compat
3534
from pandas.core.arrays import Categorical
3635
from pandas.core.base import StringMixin
3736
from pandas.core.frame import DataFrame
37+
from pandas.core.index import DatetimeIndex
38+
from pandas.core.missing import isna
39+
from pandas.core.reshape.concat import concat
3840
from pandas.core.series import Series
41+
from pandas.core.tools.datetimes import to_datetime
42+
from pandas.core.tools.timedeltas import to_timedelta
3943

4044
from pandas.io.common import (
4145
BaseIterator, _stringify_path, get_filepath_or_buffer)
@@ -1731,12 +1735,6 @@ def _do_convert_categoricals(self, data, value_label_dict, lbllist,
17311735
data = DataFrame.from_dict(OrderedDict(cat_converted_data))
17321736
return data
17331737

1734-
def data_label(self):
1735-
"""
1736-
Return data label of Stata file.
1737-
"""
1738-
return self.data_label
1739-
17401738
def variable_labels(self):
17411739
"""
17421740
Return variable labels as a dict, associating each variable name

0 commit comments

Comments
 (0)