Skip to main content

Wrapper for plotting with seaborn using Polars dataframes and lazyframes

Project description

seaborn_polars

Wrapper allowing to use Polars DataFrames and LazyFrames for plotting with seaborn

Requirements

Python 3.8+

Seaborn, Polars, Pandas, Numpy, Pyarrow

Installation

Use regular pip install:

pip install seaborn_polars pandas numpy polars seaborn pyarrow

Alternatively, clone this repository.

Usage

The package is a wrapper around seaborn plotting functions allowing to use Polars DataFrames and LazyFrames with the same syntax as when using Pandas DataFrames.

import polars as pl
import seaborn_polars as snl

df = pl.scan_csv('data.csv')

snl.scatterplot(df, x='rating', y='responses', hue='gender')

The package uses a deepcopy of original data. That way the original dataframe remains unaffected. For example, in the code snippet above, if we check the type of df after plotting we'll see that it is still a Polars LazyFrame.

All the plotting functions and parameters are identical to seaborn. When using data parameter, it has to be positional-only, the rest of parameters are keyword arguments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seaborn_polars-0.0.2.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seaborn_polars-0.0.2.6-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file seaborn_polars-0.0.2.6.tar.gz.

File metadata

  • Download URL: seaborn_polars-0.0.2.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for seaborn_polars-0.0.2.6.tar.gz
Algorithm Hash digest
SHA256 2c59e25ada2471c7425f7b9ab63526782d07cb21b380b0790b964edb2f65b26d
MD5 ad10df4ea7df79b2d478c11dfe802ae3
BLAKE2b-256 76e539eeeb7a0ec6a9abd738bf7ddc9e581ebb6c321fc8036ce9a35f8dae6e94

See more details on using hashes here.

File details

Details for the file seaborn_polars-0.0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for seaborn_polars-0.0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d0959d59a43db63656152e2667b946b2bbf5d00c8321c5d837bf105ab6eaf7fc
MD5 dbe4e452a2cb9fece479640f9fd62b8c
BLAKE2b-256 95260cdb25a1d485205b8a1b32bf04cc0bd39865519b90e701806098ccf72753

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page