- Added Python 3.10 support
- Added ability to set individual borders' type via the
border_type
argument when creating aStyler
object - Fixes GitHub issue #108 - Styling and exporting a dataframe that contains a column called "index"
- Fixes error when attempting to use
best_fit
argument inStyleFrame.to_excel
on an empty dataframe GitHub PR #157
- Added
strikethrough
anditalic
toStyler
- Raising
TypeError
into_excel
if trying to use a non-openpyxl engine - Exposing
Exposing StyleFrame.ExcelWriter
andStyleFrame.read_excel
to the module-level (styleframe.ExcelWriter
andstyleframe.read_excel
) to more closely mimic pandas' API - Fixes GitHub issue #124 - Improved calculation of color luminosity from tint
- Removed Python 3.4 support
- Removed Python 3.5 support
- Added Python 3.9 support
- Allowing
StyleFrame.ExcelWriter
to accept any argument (except forengine
) thatpandas.ExcelWriter
accepts - Allowing customizing formats of
date
,time
anddatetime
objects when creatingStyler
instances - Fixed rows mis-alignment issue when calling
to_excel
withheader=False
(GitHub issue #88) read_excel
does not acceptsheetname
argument anymore (was deprecated since version 1.6). Usesheet_name
instead.
- Fixes GitHub issue #94 - Passing
border_type=utils.borders.default_grid
toStyler
- Fixes GitHub issue #81 - read excel as template headers height
- Fixed style "shifts" when using
read_style=True
andheader=None
withStyleFrame.read_excel
. Fixes GitHub issue #80
No longer relying on openpyxl's colors definition. Related to GitHub issue #73
Hotfix release - setting maximum versions for dependencies. Related to GitHub issue #73
-
Removed Python 2.7 support
-
Added Python 3.8 support
-
Renamed package name to
styleframe
(all lowercase) in accordance of PEP8 -
Added
.style
accessor. This allows for easy selection/indexing based on style, for example:sf.loc[sf['col_name'].style.bg_color == utils.colors.yellow]
or
sf.loc[~sf['col_name'].style.bold]
-
Added
default_grid
toutils.borders
to allow usage of the default spreadsheet grid -
Added
read_excel_as_template
method -
Fixed a bug that prevented saving if
read_excel
was used withuse_openpxl_style=True
, see GitHub issue #67 -
Allowing usage of pathlib.Path in
to_excel
, see GitHub issue #69 -
Added ability to execute the tests from the commandline:
styleframe --test
style_alternate_rows
can accept all arguments thatapply_style_by_indexes
accepts as kwargs.- Added
cols_to_style
argument toapply_headers_style
- Fixed a bug that caused
apply_style_by_indexes
not to work in case the dataframe had non-integer indexes in some cases - Added support for text rotation
- Fixing pandas dependency for different Python versions, related to #52, #53
- Fixed a "'column' is out of columns range" error when settings a column's width if dataframe has more than 26 columns.
- Hotfix: Fixed typo in setup.py
- Change supported versions of openpyxl to >= 2.5
- Changed
use_openpyxl_styles
argument default value toFalse
inStyleFrame.read_excel
.
- Fixed an issue that prevented reading files which used certain theme colors.
- Reading columns' widths and rows' heights when passing
read_style=True
toread_excel
. - Added support for named indexes.
- Added
style_index_header
argument toapply_headers_style
. - Added support for pandas <= 0.23.4
- Added Python 3.7 support
- Added support for pandas <= 0.23.1
- Added dt and str accessors to Series
- Added support for passing an integer (sheet index) as
sheet_name
toStyleFrame.read_excel
StyleFrame.read_excel
sheetname
argument changed tosheet_name
. Usingsheetname
is still allowed but will show deprecation warning.- Added
Styler.combine
method. - Added
utils.number_formats.decimal_with_num_of_digits
method. - Added
overwrite_default_style
argument toStyleFrame
methodsapply_style_by_indexes
andapply_column_style
- Fixed a bug where
read_excel
will fail when usingread_style=True
in cases where specific themes are used (See GitHub issue #37).
- Added
complement_style
andcomplement_height
arguments toStyleFrame.apply_style_by_indexes
- Added support for comments
- Renamed
Styler.create_style
method toto_openpyxl_style
(create_style
is still available for backward compatibility) - Fixed a bug not allowing to access StyleFrame columns by dot notation in case a column name is a number
- No longer supporting Python 3.3
- StyleFrame objects no longer expose .ix method as it is deprecated since pandas 0.20. Use .loc or .iloc instead
- Added ability to access StyleFrame columns as attributes (eg
sf.column_a
) - Added conditional formatting
- Added
best_fit
toto_excel
method - Added support for pandas <= 0.22.0
- Added support for theme colors when reading styles from Excel sheets
- Added option to use
Styler
objects when reading styles from Excel sheets - Using a JSON schema to validate json from command line
- Added command line argument --show-schema
- Improved error message if invalid style arguments are used in JSON through the commandline interface
- Fixed an error importing utils in case there is already a utils module in Python's path (see GitHub issue #31)
- Added
utils.fill_pattern_types
- Added
wrap_text
,shrink_to_fit
,fill_pattern_type
andindent
arguments toStyler.__init__
- Fixed an issue when running tests from code
- Using
.loc
and.iloc
instead of.ix
since.ix
is deprecated in pandas >0.20 - Added
horizontal_alignment
andvertical_alignment
arguments toStyler.__init__
- Added
style_alternate_rows
method toStyleFrame
.
- Added option to pass a json string through cli
- Added
cells
option todefault_styles
when using JSON
- Added commandline interface that supports json to xlsx
- Added
utils.fonts
- Added
width
andheight
arguments to relevant styling methods
- Removed support for individual style specifiers when calling styling methods
- Added 2 general styles to
utils.number_formats
: '0' asutils.number_formats.general_integer
and '0.00' asutils.number_formats.general_float
- Fixed a bug with a
DeprecationWarning
unnecessarily showing
- Added ability to change font
- Added ability to change cell border type
- Added
style_obj
argument to all styling methods which accepts aStyler
object so styles can be reused. The ability to directly pass style specifiers is deprecated and may break in a future version - Added basic ability to read stylized excel into a stylized StyleFrame by pass
read_style=True
toStyleFrame.read_excel
. Currently does not support reading style from a subset of sheet (ie usingstartrow
,startcol
and the such) - Added ability to provide a default
Styler
object toStyleFrame.__init__
, and added deprecation message when not passing aStyler
object to styling methods
- Added ability to run tests by code:
from StyleFrame import tests tests.run()
- Fixed a bug when adding an underline to a style
- More extensive tests
- Fixed a bug when passing
header=False
toto_excel
- Changed dependencies, now requires pandas 0.16.2 - 0.18.1
- Changed Python support: 2.7, 3.3, 3.4, 3.5
- Fixed a bug when trying to filter the first row
- Transitioning to x.y.z version numbers
right_to_left
is now set toFalse
as default into_excel()
- Most of the methods now return
self
to allow method chaining (egStyleFrame(..).rename(..).to_excel()
)
- Supports passing a path to required output file to
to_excel
method, much like pandas'sto_excel
.
- Basic support for Python 3.
- Internal changes in
apply_style_by_indexes
method in order to keep number formats of dates and times.
- Fixed a bug when creating a
StyleFrame
from an emptyDataFrame
- Some bugs fixes
- Added ability to change width and height of several columns/rows at once (
set_column_width_dict
andset_row_height
methods)
- Added ability to create excel with the dataframe's (and style) indexes
- Added ability add filter to rows
- Added ability to protect cells and sheets from editing
- Some bugs fixes
- Added default style for cells with
'=HYPERLINK(..)'
values (blue color, underlined) - Improved unicode support
- Added ability to set rows height and columns width
- Added ability to style only the columns headers.
- Added ability to rename columns while keeping the style of the headers
- Added ability to change font color
- Added
utils.number_formats
- Added support for 'direct' item assignment, ie
sf['column_c'] = 5
- Added ability to hide certain columns when exporting to excel.
- Changed parameters names. See the documentation.
- Added
ExcelWriter
toStyleFrame
class - Supports initializing
StyleFrame
with containers
- Initial release