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)
floorer.create_parquet(df2)
# 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)
# 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.1.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.1.tar.gz.
File metadata
- Download URL: floorer-0.1.1.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 |
d5734acff091e0578938c8f778f342709fab29d475673d9ef229f13ef0c0ea85
|
|
| MD5 |
2362ba5705ff787272759b07c362dbc0
|
|
| BLAKE2b-256 |
51aa13841c5d7abc3ee8702a8a51fd15005361e7976f57c24764c8983139873c
|
File details
Details for the file floorer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: floorer-0.1.1-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 |
067d32bfc1573281811c473c4f9811d93216b29f8c1db57ba93705d8993b41dd
|
|
| MD5 |
35b6282021fc172fa4cd40b613c90cee
|
|
| BLAKE2b-256 |
79565bfba67f47689232adfaefaa7c4f4a2ece4922c7cc8132a04e099255e7d8
|