Skip to content

Releases: MSeal/dx

v1.4.0

03 May 16:01
edb8e97
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

31 Mar 12:32
bd35271
Compare
Choose a tag to compare

What's Changed

Read more

v1.2.0

21 Aug 21:43
90ba268
Compare
Choose a tag to compare

What's Changed

1.2.0

2022-08-21

Added

  • pd.Series as a default renderable type (to go with the existing pd.DataFrame and np.ndarray types)
  • Support for the following data types inside pd.DataFrame columns:
    • type and np.dtype
    • shapely.geometry objects
    • pd.Timedelta and datetime.timedelta
    • pd.Period
    • pd.Interval
    • complex numbers
    • ipaddress.IPv4Address and .IPv6Address
  • Extra dataset generation functions for development/testing under dx.utils.datatypes
    • dx.quick_random_dataframe(n_rows, n_columns) to get a pd.DataFrame of 0.0-1.0 floats (convenience wrapper for pd.DataFrame(np.random.rand(n_rows, n_columns)))
    • dx.random_dataframe() with different boolean values to enable based on available datatypes (dx.DX_DATATYPES)
  • settings_context context manager to allow temporarily changing a setting (or multiple)
  • Logging via structlog (default level: logging.WARNING)

Changed

  • Default sampling method changed from outer to random

Fixed

  • Displaying a dataframe with an out-of-order index (like with .sample()) no longer resets the index before sending data to the frontend.
  • Index/column flattening and string-formatting is behind settings and is handled more explicitly
  • dx should no longer interfere with other media type / mime bundles (e.g. matplotlib) formatted by the existing IPython display formatted

  • 1.1.3 updates by @shouples in #19
  • fix github workflow for publishing to pypi by @shouples in #15
  • display ID registration prep, formatter registration fixes, index updates, dtype handlers, expanded data generators by @shouples in #16

Full Changelog: v1.1.2...v1.2.0

1.1.2

25 Jul 12:59
5c2efdc
Compare
Choose a tag to compare

What's Changed

Fixed

  • outer sampling method no longer alters column dtypes by adding ... placeholder row/column

Full Changelog: v1.1.1...v1.1.2

v1.1.1

22 Jul 22:02
04bf5a9
Compare
Choose a tag to compare

What's Changed

Fixes

  • settings.SAMPLING_METHOD assignment will no longer resolve as True during dataframe truncating

Adds

  • support for pd.NA values
  • pre-render dataframe stats sent in the metadata to the frontend

Full Changelog: v1.1.0...v1.1.1

v1.1.0

22 Jul 15:57
8f5a61c
Compare
Choose a tag to compare

What's Changed

Added

  • Direct support for application/vnd.dataresource+json media type display formatting
  • reverting all settings to pandas defaults with dx.reset() or switching to the DISPAY_MODE setting to default
  • pydantic dependency for BaseSettings use
    • pandas-inspired dx.set_option(setting_name, setting_value)
    • dx.set_display_mode() convenience function for globally switching between simple (simpleTable/DEX), enhanced (GRID), and default (vanilla pandas)
  • Auto-truncating rows and columns of pd.DataFrame objects based on DISPLAY_MAX_ROWS, DISPLAY_MAX_COLUMNS, and MAX_RENDER_SIZE_BYTES (1MB default) size limits before rendering (for simple & enhanced display modes), with blueprintjs flavored warnings
    • SAMPLING_MODE setting to better control how truncating happens ("first", "last", "outer", "inner", and "random" options)
    • RANDOM_SEED setting for random sampling

Fixed

  • Support for non-string column and index values (possibly temporary) to allow build_table_schema to work with pd.MultiIndex values

image

Full Changelog: v1.0.4...v1.1.0

v1.0.4

06 May 21:34
795e55b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.3...v1.0.4

v1.0.3

27 Apr 12:24
eb461ea
Compare
Choose a tag to compare

First release! The notes below cover changes from v1.0.0 to v1.0.3, but future release notes will be version-specific.


Fixed

  • dx.register() (dx.enable(), deprecated) and dx.deregister() (dx.disable(), deprecated) will now update the default display formatting for pandas DataFrame objects as intended
  • Updated minimum python version to 3.8 (down from 3.9.6 in 1.0.0)

Added

  • Custom IPython formatter for Noteable environments
  • Additional data type support for display() / dx():
    • any tabular structure (lists of dicts, dict of {column: [values]}, etc) that can be loaded into a pandas DataFrame
    • .csv and .json file paths

Full Changelog: https://github.com/noteable-io/dx/commits/v1.0.3
PyPI: https://pypi.org/project/dx/1.0.3/