Skip to main content

python-ds-util

PyPI version

Installation

The library is available on pip:

pip install dsutil

Examples

For full usage examples see notebooks under the examples directory.

Plotting

Full examples for plotting here

  • add_grid(): reasonable default grid settings, with weak grey lines, light alpha, etc.

    import numpy as np
    import matplotlib.pyplot as plt
    from dsutil.plotting import add_grid
    
    x = np.linspace(0.0,100,10)
    y = np.random.uniform(low=0,high=10,size=10)
    
    plt.bar(x,y)
    
    add_grid()
    

  • add_value_labels() annotates barplots, line plots and scatter plots with values for the coordinates

    import numpy as np
    import matplotlib.pyplot as plt
    from dsutil.plotting import add_value_labels
    
    x = np.linspace(0.0,100,10)
    y = np.random.uniform(low=0,high=10,size=10)
    
    plt.bar(x,y)
    
    add_value_labels()
    

  • format_yaxis_percentage(): turns values between 0 and 1 in y-axis into percentages

    import numpy as np
    import matplotlib.pyplot as plt
    from dsutil.plotting import format_yaxis_percentage
    
    x = np.linspace(0.0,100,10)
    y = np.random.uniform(low=0,high=1,size=10)
    
    plt.bar(x,y)
    plt.yticks(np.arange(0,1.01,0.1))
    
    format_yaxis_percentage()
    

  • format_yaxis_thousands(): uses commas as thousands separator in the y-axis labels

    import numpy as np
    import matplotlib.pyplot as plt
    from dsutil.plotting import format_yaxis_thousands
    
    x = np.linspace(0.0,100,10)
    y = np.random.uniform(low=10000,high=100000,size=10)
    
    plt.bar(x,y)
    plt.yticks(np.arange(0,100001,10000))
    
    format_yaxis_thousands()
    

Metadata

Release files for dsutil 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsutil 0.2.1
File Size Uploaded Provenance
dsutil-0.2.1.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dsutil 0.2.1
File Interpreter ABI Platform
dsutil-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / dsutil-0.2.1.tar.gz

Download URL dsutil-0.2.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0d9dd3fea263b39c3c7b8f2d9a315779e5982bd9399e1f33c4b3f2d0306dfa29
BLAKE2b-256 checksum
How to use checksums
b50f9cbcb4473b5d1397ef784ced60754cf4a2419d53caca6ca425dd3b609afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / dsutil-0.2.1-py3-none-any.whl

Download URL dsutil-0.2.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a13b6f4eea7c3646421d17e012b2f54c5bec9057724908fc0d802397aaabc27
BLAKE2b-256 checksum
How to use checksums
101a43a790b6317a0633a2128b4714bac05806dd5a4eef39e300694962b67481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for dsutil 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page