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

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.6.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.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floorer-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 450e3b02204948aed5b73d22fd906f0f85e0f8bd9b4500507e10a189ab9baa5d
MD5 6d8933414ccc063199cf27a2e5a2024e
BLAKE2b-256 9536da2390308cb174293f364a7d88b264cb5fba46e3c213c0233ae6ec25443f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: floorer-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 80a959fab043ffdbeb382370ff33d4bfe0f85d10839d412b248bd1e4989f7612
MD5 836c16fe926d6c2a9f08a5667cdde527
BLAKE2b-256 1ed941884b353ff33d361059e3cd3f65c1ade832639a9ad0481ab6fd36d8eb46

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