Skip to content

Commit

Permalink
Add adbsolute imports, removed data_label method and remove stata fro…
Browse files Browse the repository at this point in the history
…m mypy.ini blacklist
  • Loading branch information
ryankarlos committed Mar 31, 2019
1 parent 819fc15 commit 1d96fec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ ignore_errors=True
[mypy-pandas.io.pytables]
ignore_errors=True

[mypy-pandas.io.stata]
ignore_errors=True

[mypy-pandas.plotting._core]
ignore_errors=True

Expand Down
14 changes: 6 additions & 8 deletions pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@
from pandas.core.dtypes.common import (
ensure_object, is_categorical_dtype, is_datetime64_dtype)

from pandas import (
DatetimeIndex, compat, concat, isna, to_datetime, to_timedelta)
from pandas import compat
from pandas.core.arrays import Categorical
from pandas.core.base import StringMixin
from pandas.core.frame import DataFrame
from pandas.core.index import DatetimeIndex
from pandas.core.missing import isna
from pandas.core.reshape.concat import concat
from pandas.core.series import Series
from pandas.core.tools.datetimes import to_datetime
from pandas.core.tools.timedeltas import to_timedelta

from pandas.io.common import (
BaseIterator, _stringify_path, get_filepath_or_buffer)
Expand Down Expand Up @@ -1727,12 +1731,6 @@ def _do_convert_categoricals(self, data, value_label_dict, lbllist,
data = DataFrame.from_dict(OrderedDict(cat_converted_data))
return data

def data_label(self):
"""
Return data label of Stata file.
"""
return self.data_label

def variable_labels(self):
"""
Return variable labels as a dict, associating each variable name
Expand Down

0 comments on commit 1d96fec

Please sign in to comment.