tensorwich
Tensorwich is a python package for saving and loading embedding data for pandas dataframe columns as a compact binary format
Features
- Save and load embedding data for pandas dataframe columns as a compact binary format that accompanies the saved csv file
Installation
pip install tensorwich
Usage
import tensorwich as tw
import pandas as pd
# load a df from a csv file and wrap it in a tensorwich
df = pd.read_csv("examples/example_df.csv")
tdf = tw.tensorwich(df)
# add the embedding to the tensorwich/df by using a custom function that generates embeddings
# in this case, we are using the "get_embeddings" function to generate embeddings from the Description column
# of the df
tdf.add_embedding('short_desc_embedding', get_embeddings(tdf.df['Description'].tolist()))
# save the df and related tensors to disk
tdf.save("examples/example_df_with_embeddings.csv")
# load the related tensors from disk
result = tw.tensorwich.load("examples/example_df_with_embeddings.csv")
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for tensorwich 0.1.1
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 | |
|---|---|---|---|---|
| tensorwich-0.1.1.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tensorwich-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / tensorwich-0.1.1.tar.gz
| Download URL | tensorwich-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
607526e2bff5289f826457c7494f61ab81796320379776b3c65b2508f93d22b2
|
|
BLAKE2b-256 checksum How to use checksums |
895a1f14a7686e0ab6aff1844b1367703d537b1f40535b622f8a1e2cc31f520d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / tensorwich-0.1.1-py3-none-any.whl
| Download URL | tensorwich-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6c5f76e1e53c14c79770f8c197d3e0082bcd2fe5a7df5215eb7652788be335f
|
|
BLAKE2b-256 checksum How to use checksums |
f8db9db3e21880e1af56d6b9b3c2b9b79c022a5f115b9c8f9b496a691c5fb0ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for tensorwich 0.1.1
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.