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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd3e9cac7ff8691b7d02e845314fff37be1b54106845d6ecf79eee4eabc67dfe
|
|
| MD5 |
0e2b7ee7406bc569b1a83f18bc0afd25
|
|
| BLAKE2b-256 |
03e741708b8ec8b5439305d563228681ba5fc2cfbf16745cd6c5015d2bd06103
|
Provenance
The following attestation bundles were made for cxcsvtopandas-0.1.4.tar.gz:
Publisher:
python-publish.yml on amitgupta7/base-cxpandascsvloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cxcsvtopandas-0.1.4.tar.gz -
Subject digest:
bd3e9cac7ff8691b7d02e845314fff37be1b54106845d6ecf79eee4eabc67dfe - Sigstore transparency entry: 160233275
- Sigstore integration time:
-
Permalink:
amitgupta7/base-cxpandascsvloader@c5fc86f6fab63d13bc2a43a5e123767721edcb25 -
Branch / Tag:
refs/tags/0.1.5 - Owner: https://github.com/amitgupta7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c5fc86f6fab63d13bc2a43a5e123767721edcb25 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4e24bca223bf703ba752e6452faa057fced26ff070731bd6b815e7ba8ddd503
|
|
| MD5 |
c0f6e573822d5db650e7f9c64ab56fda
|
|
| BLAKE2b-256 |
6b11af43593e3c16d1f1f954ac8ec89ebe6655c27208a9a9b5889c7841a1473d
|
Provenance
The following attestation bundles were made for cxcsvtopandas-0.1.4-py3-none-any.whl:
Publisher:
python-publish.yml on amitgupta7/base-cxpandascsvloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cxcsvtopandas-0.1.4-py3-none-any.whl -
Subject digest:
e4e24bca223bf703ba752e6452faa057fced26ff070731bd6b815e7ba8ddd503 - Sigstore transparency entry: 160233277
- Sigstore integration time:
-
Permalink:
amitgupta7/base-cxpandascsvloader@c5fc86f6fab63d13bc2a43a5e123767721edcb25 -
Branch / Tag:
refs/tags/0.1.5 - Owner: https://github.com/amitgupta7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c5fc86f6fab63d13bc2a43a5e123767721edcb25 -
Trigger Event:
release
-
Statement type: