Skip to content

Commit

Permalink
Cleaner imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Apr 8, 2017
1 parent a1127f6 commit a43d6b7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
import pandas.core.nanops as nanops
import pandas.core.ops as ops
import pandas.formats.format as fmt
from pandas.formats.excel import ExcelFormatter
from pandas.formats.printing import pprint_thing
import pandas.tools.plotting as gfx

Expand Down Expand Up @@ -1419,6 +1418,7 @@ def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',
merge_cells=True, encoding=None, inf_rep='inf', verbose=True,
freeze_panes=None):

from pandas.formats.excel import ExcelFormatter
formatter = ExcelFormatter(self, na_rep=na_rep, cols=columns,
header=header,
float_format=float_format, index=index,
Expand Down
3 changes: 1 addition & 2 deletions pandas/formats/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
from pandas.formats.printing import pprint_thing
from pandas.types.common import (is_float)
import pandas._libs.lib as lib
from pandas.core.index import Index, MultiIndex
from pandas.tseries.period import PeriodIndex
from pandas import Index, MultiIndex, PeriodIndex
from pandas.formats.common import get_level_lengths


Expand Down
1 change: 0 additions & 1 deletion pandas/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from pandas.core.config import get_option, set_option
from pandas.io.common import _get_handle, UnicodeWriter, _expand_user
from pandas.formats.printing import adjoin, justify, pprint_thing
from pandas.formats.excel import ExcelFormatter # for downstream # NOQA
from pandas.formats.common import get_level_lengths
import pandas.core.common as com
import pandas._libs.lib as lib
Expand Down
2 changes: 1 addition & 1 deletion pandas/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import pandas.core.common as com
from pandas.core.indexing import _maybe_numeric_slice, _non_reducing_slice
from pandas.util.decorators import Appender
from pandas.formats.excel import ExcelFormatter
try:
import matplotlib.pyplot as plt
from matplotlib import colors
Expand Down Expand Up @@ -207,6 +206,7 @@ def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',
merge_cells=True, encoding=None, inf_rep='inf', verbose=True,
freeze_panes=None):

from pandas.formats.excel import ExcelFormatter
formatter = ExcelFormatter(self, na_rep=na_rep, cols=columns,
header=header,
float_format=float_format, index=index,
Expand Down

0 comments on commit a43d6b7

Please sign in to comment.