Rest-pandas

Latest version: v1.1.0

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

Scan your dependencies

Page 2 of 2

0.3.1

This release of DRP adds a small patch (1a81adcb8be3a65ae6c2c4b9d15a7661df5dd4d9) to ensure that no pagination class will be used for DRP views when running in Django REST Framework 3.

0.3.0

Django REST pandas 0.3.0 adds support for Django REST Framework 3 (10) and a better separation between model serialization and `DataFrame` creation - the latter now happening in a separate serializer (8).

The new code is mostly backwards compatible (the tests haven't changed) but there are a couple of implementation changes that may affect you if you've customized or extended DRP.
- `PandasBaseSerializer` has been renamed to `PandasSerializer` and replaces the former `PandasSerializer`. When using DRP with DRF 3, the new `PandasSerializer` is a [ListSerializer](http://www.django-rest-framework.org/api-guide/serializers/#listserializer) and can only be used as such.
- `PandasSimpleSerializer` has been renamed to `SimpleSerializer` and no longer has any pandas-related functionality (since that's now handled in a separate step).
- For the DRP views, a new `PandasMixin` class encapsulates the functionality needed to add Pandas capabilities to a serialized result. This is accomplished via the new `with_pandas_serializer(cls)` method that customizes any existing `serializer_class` to enable Pandas capabilities as needed. The Pandas serializer can be overridden by specifying `pandas_serializer_class`.

0.2.1

- Port [wq/pandas.js](http://wq.io/docs/pandas-js) to Python for testing (9880befd2ae4c4a37b5440375b6370a8c36a1529)
- Fix name of `pandas` library in code & docs (9)
- Minor bug fixes (35c767d7d3e12955e04c10c9b897684a5ede4508, 14aeb0144e2ae1f57bcdedec4a8154878658dabb)

0.2.0

- Test on Python 3 (3) and Django 1.7 RC2

0.1.1

- pass Django REST Framework `charset` through to pandas `encoding` (default is `"utf-8"`)
- option to replace `None` values to avoid fragile indexes

0.1.0

Initial Release

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.