Skip to main content

compares two polars dataframes for equality

Project description

df compare pl

compares two polars dataframes for equality
equality in this case means that:

  • both dfs must have the same columns: column names, dtypes, number of cols

  • both dfs must have the same rows

  • if the dfs have different columns they will not be checked for a difference in rows

  • row and column order do not matter for row and column comparisons

  • will fill nulls with is_null for comparison purposes

    args:
    a: a pl.Dataframe
    b: a pl.Dataframe
    col_only: a boolean indicating whether only the columns should be checked
    write_csv: a boolean indicating whether or not to write csvs with the row differences, this is helpful when there are many row differences and the normal prints won't contain everything; defaults to False

    returns:
    True if the dataframes are equal, False if not
    prints the difference if False

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

df_compare_pl-0.1.3.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

df_compare_pl-0.1.3.3-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file df_compare_pl-0.1.3.3.tar.gz.

File metadata

  • Download URL: df_compare_pl-0.1.3.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for df_compare_pl-0.1.3.3.tar.gz
Algorithm Hash digest
SHA256 d89c1bd80bb4c56e00cd637b6c0a2933c196cb30e33e65ada9830b668b8d1aa7
MD5 bcd326243a42587c816299fcf79c34e5
BLAKE2b-256 61424ce68cc6da2bd5499ea23103bd571d27f4c7460b18a1b3c167c78813463a

See more details on using hashes here.

File details

Details for the file df_compare_pl-0.1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for df_compare_pl-0.1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3726b703d86dfd68b95d534f0e5bf3662998a742a75f7701d788caf7c29a1a4e
MD5 3f32bdd47251f9a6883f88331715358b
BLAKE2b-256 04cc779a36277922f8224716d61a3c281f756a2743b8d97676f49d50c8f93179

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