Skip to main content

A simple example package

Project description

cxpandascsvloader

A simple example package for loading and processing CSV data into Pandas DataFrames.

Installation

You can install the cxpandascsvloader package using pip:

pip install cxcsvtopandas

Usage

% python                        
Python 3.9.20 (main, Oct 19 2024, 17:36:14) 
[Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cxcsvtopandas.dataframeloader as dfl
>>> dfl.printinfo()
dataframeloader module loaded.

Examples

Using the generic dataframeloader method to read files with specific prefix.

import cxcsvtopandas.dataframeloader as dfl
root = '../../.dataDir'
df = dfl.loadDataFrameFromFileRegex(root, "ASSESS*")

Optionally specify date range for filtering csv files;

import cxcsvtopandas.dataframeloader as dfl
root = '../../.dataDir'
fromDt = '2024-11-10'
toDt = '2024-12-10'
df = dfl.loadDataFrameFromFileRegex(root, "ASSESS*", daterange=[fromDt, toDt])

Propritary timeseries reporting;

import cxcsvtopandas.dataframeloader as dfl
root = '../../.dataDir'
fromDt = '2024-11-10'
toDt = '2024-12-10'
metricsArr = ['cpu_used','task_queue_length', 'memory_used']
daterange=[fromDt, toDt]
df = dfl.loadApplianceTimeSeriesData(root, metricsArr, daterange)
appliance_id='58e98e10-1b19-4c84-93c0-db2ad5903b80'
## fromDt and toDt can also be a subset of the total dataframe.
fig  = dfl.plotMetricsFacetForApplianceId(df, appliance_id)
fig.show()

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

cxcsvtopandas-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

cxcsvtopandas-0.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cxcsvtopandas-0.1.3.tar.gz.

File metadata

  • Download URL: cxcsvtopandas-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cxcsvtopandas-0.1.3.tar.gz
Algorithm Hash digest
SHA256 51a984df634130adf05db73b405adb98f8fb2e6a82604a350760d0b0907a479a
MD5 339543bcc42786f173ac2968c6ad2755
BLAKE2b-256 63b45489153c1fb6a6c675e8f6ee1f68348023f511280e91a3fed59ef42f48ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for cxcsvtopandas-0.1.3.tar.gz:

Publisher: python-publish.yml on amitgupta7/base-cxpandascsvloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cxcsvtopandas-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cxcsvtopandas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cxcsvtopandas-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 465e009adcc0efe3a126691214c06273e4943bb323604ab0c5c977b10cc03ac7
MD5 37990cddedf7cf03c1e9ee7dc26c0bc0
BLAKE2b-256 b81afde8c29855ddc30bc3b92eae15843494aa8435be03400f66398bfce7f08b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cxcsvtopandas-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on amitgupta7/base-cxpandascsvloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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