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.3.tar.gz
(3.6 kB
view details)
File details
Details for the file pandatorch-1.0.3.tar.gz
.
File metadata
- Download URL: pandatorch-1.0.3.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 | 42ef830b83840cf8dd2febaf3e2d1ad689c436aac51e86421637f29df68d2761 |
|
MD5 | b835354e77c36f1836fe2eaba44e268d |
|
BLAKE2b-256 | ee7a0067a1b6b332cd77327ad26fa70e342c1b17392f92c6f107a752cdf4ebe6 |