A flexible simple library that makes it easier to use the extrememly popular pandas package with the other extremely popular framework PyTorch.
Project description
A flexible simple library that makes it easier to use the extrememly popular pandas package with the other extremely popular framework PyTorch.
Functions
Converts a Pandas DataFrame into a usable PyTorch dataset.
Allows use of all usual Pandas functions
Usage
import pandas as pd from pandatorch import data df=pd.read_csv("path_to_dataset") torch_df=data.DataFrame(X=df.drop("<Target Column>",axis=1),y=df["<Target Column>"])
Note: Check out the notebooks folder for a full end-to-end training example of a tabular dataset using PandaTorch
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
PandaTorch-1.0.1.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file PandaTorch-1.0.1.tar.gz
.
File metadata
- Download URL: PandaTorch-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64cff634c4ee16051884b27dfc5ebd42de52f6771a3f635e16c95a02ecab9089 |
|
MD5 | 7c52ae63449293cb5a0f14fb9a505e94 |
|
BLAKE2b-256 | 76f43fc1839f3f2c1d62097e4f6d564d8d1bc2b6e551afc69310a69f5d0ddee5 |
File details
Details for the file PandaTorch-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: PandaTorch-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c6d77c1445bdc688dc247ec584afeeddf0a2f84cc7d772e72568a000746cff |
|
MD5 | ea73c3117a7d26b8316865040af3db94 |
|
BLAKE2b-256 | 646d27261514bea7ee87617dbf6c45447a97e34fd7c995a0051e6193057b86f9 |