Skip to main content

na_quantors

Project description

Overview

The na_quantors project is a small collection of functions that check arguments for being na-values.

Installation

To install na_quantors, you can use pip. Open your terminal and run:

pip install na_quantors

Implementation

import pandas as _pd


def isna(*values):
    ans = {(_pd.isna(x) is True) for x in values}
    (ans,) = ans
    return ans


def notna(*values):
    return not isna(*values)


def allisna(*values):
    return all(isna(x) for x in values)


def allnotna(*values):
    return all(notna(x) for x in values)


def anyisna(*values):
    return any(isna(x) for x in values)


def anynotna(*values):
    return any(notna(x) for x in values)

License

This project is licensed under the MIT License.

Credits

Thank you for using na_quantors!

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

na_quantors-1.0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

na_quantors-1.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file na_quantors-1.0.3.tar.gz.

File metadata

  • Download URL: na_quantors-1.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for na_quantors-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e787d81467817ee73a794cd9e5c1e91389342cdbed37572dd0f0141a872d7cdf
MD5 b6ce92e9395716bf182e810d1d135789
BLAKE2b-256 3ec60d591408e545ba7e49fdf7f10e0cdf570c8e21886b077a0f5a5ba4087e1a

See more details on using hashes here.

File details

Details for the file na_quantors-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: na_quantors-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for na_quantors-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 160866eba70951e4ee6f637d93fb592997c33f1ee38b392d10e43caad2395abe
MD5 0f5b4d545cddeeb4bef3626871c24051
BLAKE2b-256 7223750b25d4046b97ae65d54c12c2f996ffd70018f9f2d9abf5c0afc7b17754

See more details on using hashes here.

Supported by

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