A flexible simple library that makes it easier to use the extrememly popular pandas package with the other extremely popular framework PyTorch.
Project description
PandaTorch
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.5.tar.gz
(3.6 kB
view details)
File details
Details for the file pandatorch-1.0.5.tar.gz
.
File metadata
- Download URL: pandatorch-1.0.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feab75e71eb5a9ed83cfc37bc2ab21b9b15f9b8e7cff8783c3bef42b733944d3 |
|
MD5 | e4dc5ec845fc9aae907e7bc7dd4c9cf2 |
|
BLAKE2b-256 | 2573268cf98a9a5130614c55c1905798e4e78a7e6b4c76b512d2e6712580b56a |