Skip to main content

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
```python
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.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floorer-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file floorer-0.1.0.tar.gz.

File metadata

  • Download URL: floorer-0.1.0.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

Hashes for floorer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f1f190d3c330950097abda91c9458b2c45dbfed443405a088e5cb1d2dd22cfbf
MD5 11f69b55f54f1c67640de6717c4ed462
BLAKE2b-256 3e2d52fb20db930da6899555db5b4d0a1d0c7b4d3118db315662225f4cbfbb44

See more details on using hashes here.

File details

Details for the file floorer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: floorer-0.1.0-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

Hashes for floorer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65d7e3a13fb01d617573646f7b26fa8ad5caafa02dcf2373ea7bb7318c8c8e9c
MD5 67915261266711f516f76a07e6b6f61d
BLAKE2b-256 fa892fb61c37dd4dfa5f89587631ca16c13dcedbb7237842e6001df6e21728f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page