Skip to content

Commit

Permalink
Merge pull request #37 from HHammond/fix_styler_import_change
Browse files Browse the repository at this point in the history
Fix import error from pandas.core.style moving to pandas.formats.style
  • Loading branch information
HHammond committed Jun 24, 2016
2 parents 7c6f10e + 7a71a45 commit a0d6ee6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = '0.0.2'
version = '0.0.3'
# The full version, including alpha/beta/rc tags.
release = '0.0.2'
release = '0.0.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
7 changes: 6 additions & 1 deletion prettypandas/styler.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from __future__ import unicode_literals

from IPython.display import HTML
from pandas.core.style import Styler
from pandas.core.indexing import _non_reducing_slice
import pandas as pd

if pd.__version__ >= '0.18.1':
from pandas.formats.style import Styler
else:
from pandas.core.style import Styler

import numpy as np

from collections import namedtuple
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
setup(
name='prettypandas',

version='0.0.2',
version='0.0.3',

description='Pandas Styler for Report Quality Tables.',
long_description=long_description,
Expand Down

0 comments on commit a0d6ee6

Please sign in to comment.