Skip to main content

Python package for SAI propritary report generation.

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
## import cxcsvtopandas.dataframeloader as dfl
## dfl.printinfo()

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.4.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.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cxcsvtopandas-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 bd3e9cac7ff8691b7d02e845314fff37be1b54106845d6ecf79eee4eabc67dfe
MD5 0e2b7ee7406bc569b1a83f18bc0afd25
BLAKE2b-256 03e741708b8ec8b5439305d563228681ba5fc2cfbf16745cd6c5015d2bd06103

See more details on using hashes here.

Provenance

The following attestation bundles were made for cxcsvtopandas-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: cxcsvtopandas-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e24bca223bf703ba752e6452faa057fced26ff070731bd6b815e7ba8ddd503
MD5 c0f6e573822d5db650e7f9c64ab56fda
BLAKE2b-256 6b11af43593e3c16d1f1f954ac8ec89ebe6655c27208a9a9b5889c7841a1473d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cxcsvtopandas-0.1.4-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