Installation
pip install a-pandas-ex-df-to-string
Usage
from a_pandas_ex_df_to_string import pd_add_to_string
pd_add_to_string()
import pandas as pd
from random import choice
csvtests = [
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_long.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_no2.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_no2_long.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_parameters.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_pm25_long.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/air_quality_stations.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/baseball.csv",
"https://github.com/pandas-dev/pandas/raw/main/doc/data/titanic.csv",
]
csvfile = choice(csvtests)
df = pd.read_csv(csvfile)
print(df)
print(df.dtypes)
df2=df.ds_to_string()
print(df2)
print(df2.dtypes)
id description name
0 bc Black Carbon BC
1 co Carbon Monoxide CO
2 no2 Nitrogen Dioxide NO2
3 o3 Ozone O3
4 pm10 Particulate matter less than 10 micrometers in... PM10
5 pm25 Particulate matter less than 2.5 micrometers i... PM2.5
6 so2 Sulfur Dioxide SO2
id object
description object
name object
dtype: object
id description name
0 bc Black Carbon BC
1 co Carbon Monoxide CO
2 no2 Nitrogen Dioxide NO2
3 o3 Ozone O3
4 pm10 Particulate matter less than 10 micrometers in... PM10
5 pm25 Particulate matter less than 2.5 micrometers i... PM2.5
6 so2 Sulfur Dioxide SO2
id string
description string
name string
dtype: object
Metadata
Release files for a-pandas-ex-df-to-string 0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a_pandas_ex_df_to_string-0.14.tar.gz | 4.5 kB | Without provenance | Details for a_pandas_ex_df_to_string-0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a_pandas_ex_df_to_string-0.14-py3-none-any.whl | Python 3 | none | any | Details for a_pandas_ex_df_to_string-0.14-py3-none-any.whl |
Total release size: 11.0 kB
Release files / a_pandas_ex_df_to_string-0.14.tar.gz
| Download URL | a_pandas_ex_df_to_string-0.14.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
479ca528de47c650aeeb33903c94e0755c88cf1cb95e8b5531972b690caad677
|
|
BLAKE2b-256 checksum How to use checksums |
8857e14e7424ef0c597646f999006a3843361cac1aa859b8f1f86b71ef2f8c53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / a_pandas_ex_df_to_string-0.14-py3-none-any.whl
| Download URL | a_pandas_ex_df_to_string-0.14-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d3da187293e30a345967458420d259810b7fa17b06f294e586a6b5b108ed2f7
|
|
BLAKE2b-256 checksum How to use checksums |
5fc9d6b86f15cfa4cb9c910f62968c3fc9958517ede786b0a99377d2741d3585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for a-pandas-ex-df-to-string 0.14
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.