A small library to manage pandas DataFrames in Parquet files using PyArrow.
Project description
Floorer
Floorer is a simple Python library for managing pandas DataFrames in Parquet files using PyArrow.
It provides CRUD operations and maintains a catalog of all DataFrames.
Installation
pip install floorer
Usage
import pandas as pd
from floorer import Floorer
# Initialize Floorer with a directory
floorer = Floorer('parquet_files')
# Create sample DataFrames
df1 = pd.DataFrame({
'name': ['Alice', 'Bob'],
'age': [25, 30]
})
df1_name = 'people'
df2 = pd.DataFrame({
'product': ['A', 'B'],
'price': [100, 200]
})
df2_name = 'products'
# Create Parquet files
floorer.create_parquet(df1, df1_name)
floorer.create_parquet(df2, df2_name)
# Read a Parquet file
read_df = floorer.read_parquet('people')
# Update a Parquet file
df1_updated = pd.DataFrame({
'name': ['Alice', 'Bob', 'Charlie'],
'age': [25, 30, 35]
})
df1_updated_name = 'people'
floorer.update_parquet(df1_updated, df1_updated_name)
# Delete a Parquet file
floorer.delete_parquet('products')
# Get the catalog
catalog_df = floorer.get_catalog()
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
floorer-0.1.5.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file floorer-0.1.5.tar.gz.
File metadata
- Download URL: floorer-0.1.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0a22a4e2f6dcc6bf49f4b546c3ade876ec20697e9cf6c0c1e108efec247ff7
|
|
| MD5 |
fab917ab37820aca8c19020b1e2010d6
|
|
| BLAKE2b-256 |
3687535f80ad40951bda315ba4a4f5f6d1d72a3a10a8ea0afaa32c81e0378924
|
File details
Details for the file floorer-0.1.5-py3-none-any.whl.
File metadata
- Download URL: floorer-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d623576a6fcd10be1bbe5cedf4702a91f97c0acf7bf247ba6b6e318f9306b7b
|
|
| MD5 |
c3c8d34a4f8291f06921c7d95fc3bf2e
|
|
| BLAKE2b-256 |
17cccd90931874b64b52d53acda0f39ba365bd130cdc06b117f9712de2d7bd07
|