Releases: DeepSpace2/StyleFrame
Releases · DeepSpace2/StyleFrame
4.2
4.2
- 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
4.1
- 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
4.0.0
- 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.
3.0.6
3.0.5
3.0.4
3.0.3
3.0.1
-
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
2.0.5
style_alternate_rows
can accept all arguments thatapply_style_by_indexes
accepts as kwargs.- Added
cols_to_style
argument toapply_headers_style
2.0.4
- 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
Also includes the following changes from non-tagged releases:
2.0.3
2.0.2
- Fixed a "'column' is out of columns range" error when settings a column's width if dataframe has more than 26 columns.