This release is a pre-release and may not be stable for production use.
Pandas2TensorBoard
Pandas2TensorBoard is a library for transforming the pandas DataFrame
into the data fomrat of TensorBoard. Pandas2TensorBoard relies on
torch utilities for the data transformation.
Installation
-
Regular installation via
pip:pip install pandas2tensorboard
-
With modin backend for
pandaspip install pandas2tensorboard[modin]
-
With Dask and omnisci support for
pandaspip install pandas2tensorboard[backend]
-
With Dask and omnisci support for
pandasand modin backend forpandaspip install pandas2tensorboard[all]
Usage
Currently the following types of export from pandas to tensorboard are
supported:
pd.DataFrame->scalarspd.DataFrame->scalarswith timestamppd.DataFrame->scattervia hyperparameters
For initializing the pandas2tensorboard library, the current syntax of Torch's
tensorboard.SummaryWriter is used.
Examples
-
Exporting a regular
pd.DataFrametotensorboardby removing columns withstr:import seaborn as sns from pandas2tensorboard import pandas2tensorboard as p2t pt = p2t.Pandas2TensorBoard() pt.regular_df( sns.load_dataset("planets"), label="planets", remove_nan=True, remove_str=True, ) pt.close()
-
Exporting a
pd.DataFramewith time column totensorboard:import seaborn as sns from pandas2tensorboard import pandas2tensorboard as p2t pt = p2t.Pandas2TensorBoard() pt.timeseries_df( sns.load_dataset("attention"), time="score", label="attention", remove_nan=True, remove_str=True, time_convert=True, ) pt.close()
The time column with name
scoreis transformed intofloatwith timestamp. -
Exporting a
pd.DataFramewith hyperparameters totensorboard:import seaborn as sns from pandas2tensorboard import pandas2tensorboard as p2t pt = p2t.Pandas2TensorBoard() pt.scatter_df( sns.load_dataset("anagrams"), x_axis="subidr", group="anagrams", remove_nan=True, remove_str=True, ) pt.close()
The
x-axiscorresponds tohparam_dict; the dataframe without columnx_axis="subidr"corresponds tometric_dict.
Contributing
Please feel free to open an issue or create a pull request; see also contributing.
License
Check MIT
Metadata
Release files for pandas2tensorboard 0.1.1a1
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 |
|---|---|---|---|---|
| Pandas2TensorBoard-0.1.1a1.tar.gz | 6.9 kB | Without provenance | Details for Pandas2TensorBoard-0.1.1a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Pandas2TensorBoard-0.1.1a1-py3-none-any.whl | Python 3 | none | any | Details for Pandas2TensorBoard-0.1.1a1-py3-none-any.whl |
Total release size: 13.5 kB
Release files / Pandas2TensorBoard-0.1.1a1.tar.gz
| Download URL | Pandas2TensorBoard-0.1.1a1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98c048edca1f60af86bc09a892e6b1a10d8022406aa4619a8716f2fa1df78b2c
|
|
BLAKE2b-256 checksum How to use checksums |
d1c9c4c2f626ca95fef5935ad920515f62cfa32dad6c6b9a9c6942d9fb90be01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1028-azure
|
Release files / Pandas2TensorBoard-0.1.1a1-py3-none-any.whl
| Download URL | Pandas2TensorBoard-0.1.1a1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c362739a11535c9b0b3506b0322b3f150c96875554a1d26a5f160f1eb558dfd
|
|
BLAKE2b-256 checksum How to use checksums |
ddb1e7cc4c0274844ac4eb4f63646b22f31fb6ec82721d00745753dd1f1ce62f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1028-azure
|
Security for pandas2tensorboard 0.1.1a1
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.