Typeddfs

Latest version: v0.16.5

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.10.0

Added

- Hash utils in `Utils`
- `file_hash`, `dir_hash`, and `mkdirs` to `write_file`
- `to_rst`

Changed

- Moved DF classmethods to `DfTyping`
- DF operators now attempt to keep typing
- All MatrixDfs are now strict
- MatrixDF row and column names now must always be "row" and "column"

Removed

- `.newline` in builder

0.9.0

Added

- `BaseDf.of` as an alias to `BaseDf.convert`
- `empty_df` methods
- `index_series_name` and `column_series_name`
- `FileFormat.strip_compression`, `FileFormat.compression_from_path`, and related

Changed

- Index series and column series names are set to None by default in `TypedDf`
- String types are now required for column/index names in `MatrixDf`
- `MatrixDf.strict` is True by default

Fixed

- `Utils.table_formats`
- Added tests for `symmetrize` and a few others

0.8.0

Added

- Matrix DFs
- Pickle support
- `Utils`
- `AbsDf.text_encoding`
- Extras `excel` and `xlsb`
- `AbsDf.read_html`
- To `TypedDfBuilder`: `remap_suffixes`, `encoding`, `newlines`, `subclass`, and `add_methods`

Changed

- `TypedDf.is_valid` no longer tries to convert; it just uses the DataFrame as-is
- Text encoding is UTF-8 by default, dictated by `AbsDf.text_encoding`
- `extra_requirements` renamed to `verifications`
- `fastparquet` no longer used in `parquet` extra
- `CoreDf.transpose` now overridden and re-types.
- `read_excel` uses openpyxl by default for XLSX-like, XLS, and ODS-like (in contrast to Pandas)
- `post_processing`, `verifications`, and related functions were moved up to `BaseDf`
- Some `AbsDf` delegates to `DataFrame` now just take `*args` and `**kwargs` for simplicity.
- `tabulate` and `wcwidth` are now required dependencies.
- Optional dependency that are not used directly now have >= version ranges

Fixed

- You can now write empty DataFrames to Feather.
- `to_excel` is much less likely to error for ODF, ODS, ODT, and XLS.
- Keyword arguments added via `write_kwargs` and `read_kwargs` no longer clash between CSV and TSV.
- Possible bugs reading and writing to fwf and flexwf (use `disable_numparse`)

Removed

- `nl` and `bom` options. See `.newline` and `.encoding` in `TypedDfBuilder` for alternatives.
- Some deprecated options.

0.7.1

Added

- Support for `to_xml` and `read_xml`

0.7.0

Added

- `can_read` and `can_write` on `BaseDf` to get supported file formats
- Write (and read) to "flex" fixed-width;
currently, this is only used for ".flexwf" as a preview
- `pretty_print`, which delegates to [tabulate](https://pypi.org/project/tabulate)
- Optional post-processing method (`TypedDf.post_process`)
- `known_column_names`, `known_index_names`, and `known_names`
- Methods to set default read_file/to_file args

Removed

- All args from `read_file` and `to_file`
- `comment` from `to_lines`; it was too confusing because no other write functions had one

Changed

- `dtype` values in `TypedDfBuilder` are now used;
specifically, `TypedDf.convert` calls `pd.Series.astype` with them.
- Overrode `assign` to handle indices
- Split some functionality of `AbsDf` into a superclass `_CoreDf`
- Bumped pyarrow to 4.0
- Various functions return more specific error types
- Deprecated `TypedDfBuilder.condition` (renamed to `verify`)
- Passing `inplace=True` where not supported now raises an error instead of warning
- All `write_file` serialization now requires column names to be str for consistency
- Empty DataFrames are read via `BaseDf.read_csv`, etc. without issue (`pd.read_csv` normally fails)

Fixed

- `to_lines` and `read_lines` are fully inverses
- Read/write are inverses for _untyped_ DFs for all formats
- Deleted .dockerignore and codemeta.json
- `check` workflow no longer errors on push
- Better read/write tests; enabled Parquet-format tests

0.6.1

Added

- `vanilla_reset`

Removed

- Unused Sphinx/readthedocs files

Fixed

- Not passing kwargs to `UntypedDf.to_csv`
- Simplified some read/write code

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.