Skip to main content

picods (pico data science) Python Library

picods is a small data science visualization tool Python library that provides two functions - picoplot and picotable - to generate plots and tables using matplotlib and pandas. This library is ideal for quick and simple data exploration and visualization tasks.

Installation

The recommended way to install picods is via pip, which will download and install the latest stable release from PyPI:

pip install picods

Alternatively, you can clone the repository from GitHub and install it manually:

git clone https://github.com/Tomcat-42/picods.git
cd picods
python setup.py install

Usage

To use picods in your Python scripts, simply import the picods module and call either the picoplot or picotable function:

import picods

# Generate a plot
picods.picoplot(title, xs, ys, legends, colors, x_label, y_label, x_lim, y_lim)

# Generate a table
picods.picotable(title, rows, columns_labels, row_labels, round_digits, color)

picoplot

The picoplot function generates a plot using the specified data, labels, colors, and limits for the x and y axis. The function signature is as follows:

def picoplot(
    title: str,
    xs: Iterable[Iterable],
    ys: Iterable[Iterable],
    legends: List[str],
    colors: List[str],
    x_label: str,
    y_label: str,
    x_lim: Union[int, None] = None,
    y_lim: Union[int, None] = None,
) -> None
  • title: The title of the plot
  • xs: An iterable of iterables containing the x values for each series
  • ys: An iterable of iterables containing the y values for each series
  • legends: A list of strings containing the legend labels for each series
  • colors: A list of strings containing the color codes for each series
  • x_label: The label for the x-axis
  • y_label: The label for the y-axis
  • x_lim: An optional integer value to set the limit of the x-axis
  • y_lim: An optional integer value to set the limit of the y-axis The available

plot types are:

  • Line plot

picotable

The picotable function generates a table using the specified data, row and column labels, and round digits. The function signature is as follows:

def picotable(
    title: str,
    rows: List[List[Union[Number, str]]],
    columns_labels: List[str],
    row_labels: List[str],
    round_digits: int = 4,
    color: str = "white",
) -> None
  • title: The title of the table
  • rows: A list of lists containing the data for the table
  • columns_labels: A list of strings containing the labels for each column
  • row_labels: A list of strings containing the labels for each row
  • round_digits: An optional integer value to set the number of decimal places to round the data to
  • color: An optional string value to set the background color of the table

Examples

Here are some examples of how to use the picoplot and picotable functions:

from picods import (picoplot, picotable)

picotable("table", [[0,1], [0,1]],["col1","col2"], ["row1", "row2"], round_digits=4, "white" )
picoplot("plot", [[0,1,2], [0,1,2]] ,[[1, 2, 4], [0, 2, 4]],["y = 2^x", "y=2*x"], ["red", "blue"], "x label", "y label")

Metadata

Release files for picods 0.1.6

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

Source distribution (sdist)

Source distribution for picods 0.1.6
File Size Uploaded Provenance
picods-0.1.6.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / picods-0.1.6.tar.gz

Download URL picods-0.1.6.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
08bee74e635b2f195c393e77a0a778b932e96c313c24b157b0c987af30e5abcc
BLAKE2b-256 checksum
How to use checksums
77ffc578e77f50daae345cfeb2e58f933a6582e8e2d29e712f5e91946cd2d17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure

Release files / picods-0.1.6-py3-none-any.whl

Download URL picods-0.1.6-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e208190f97166398c875f704ba14909f4a27b233ed6dfa738f4eb6dbd90390d0
BLAKE2b-256 checksum
How to use checksums
09e3ddbfd973d47cd85c7e45eb47963e32c5b6c2cf58a0eaac4532bdb60a8b3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure

Security for picods 0.1.6

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.

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