Swifter

Latest version: v1.4.0

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

Scan your dependencies

Page 3 of 9

1.0.5

* Added warnings/errors for swifter methods which do not exist when using modin dataframes
* Updated Dask Dataframe dependencies to require a more recent version
* Updated examples/speed benchmark notebooks

1.0.4

* Broken release

1.0.3

* Fixed bug with string, axis=1 applies for pandas dataframes that prevented swifter from leveraging modin for parallelization when returning a series instead of a dataframe

1.0.2

* Remove pickle5 hard dependency

1.0.1

* Reduce resources consumed by swifter by only importing modin/ray when necessary.
* Added `swifter.register_modin()` function, which gives access to `modin.DataFrame.swifter.apply(...)`, but is only required if modin is imported after swifter. If you import modin before swifter, this is not necessary.

1.0.0

Two major enhancements are included in this release, both involving the use of modin in swifter. Special thanks to Devin Petersohn for the collaboration.

1. Enable compatibility with modin dataframes. Compatibility not only allows modin dataframes to work with `df.swifter.apply(...)`, but still attempts to vectorize the operation which can lead to a performance boost.

Example:
python

import modin.pandas as pd
df = pd.DataFrame(...)
df.swifter.apply(...)


2. Significantly speed up swifter axis=1 string applies by using Modin, resolving a long-standing issue for swifter.
* Use Modin for axis=1 string applies, unless allow_dask_on_strings(True) is set. If that flag is set, still use Dask.
* NOTE: this means that allow_dask_on_strings() is no longer required to work with text data using swifter.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.