Skip to main content

An enhanced DataFrame with SQL-like capabilities.

Project description

https://img.shields.io/pypi/v/dataqueryframe.svg https://readthedocs.org/projects/dataqueryframe/badge/?version=latest https://pyup.io/repos/github/jmccoll7/dataqueryframe/shield.svg

DataQueryFrame is an enhanced DataFrame library that provides SQL-like capabilities for data manipulation and analysis. It extends the functionality of the popular pandas DataFrame, allowing you to perform common database operations directly on your data.

Features

  • SQL-like query operations: SELECT, WHERE, GROUP BY, ORDER BY, UNION, etc.

  • Seamless integration with pandas DataFrame

  • Easy-to-use API for data filtering, aggregation, and transformation

  • Support for various data sources (CSV, Excel, SQL databases, etc.)

  • Efficient and optimized for large datasets

Installation

You can install DataQueryFrame using pip:

pip install dataqueryframe

Usage

Here’s a quick example of how to use DataQueryFrame:

import pandas as pd
from dataqueryframe.dataqueryframe import DataQueryFrame as dqf

# Create a DataQueryFrame from a parquet file
# df = dqf(pd.read_parquet('data.parquet'))

# Create a DataQueryFrame from a dictionary
df = dqf({'A': [1,2,3,4,5], 'B': ['good', 'bad', 'ugly', 'good', 'bad']})

# Perform SQL-like operations
result = df.select(['column1', 'column2']) \
           .where('column1', '<', 3) \
           .order_by('column1', ascending=False) \
           .limit(10)
print(result)

History

0.1.0 (2024-03-28)

  • First release on PyPI.

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

dataqueryframe-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

dataqueryframe-0.1.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: dataqueryframe-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for dataqueryframe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d64fb4877d2c893ed5be06350baf5496446297ad85de8fc42212d35aea96a5cf
MD5 293f940fe26456c103567d03dafdd511
BLAKE2b-256 795410d48968d4d7a58b784259be38111dced1a5f3326128973c10a69d3e76ec

See more details on using hashes here.

File details

Details for the file dataqueryframe-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dataqueryframe-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0251e43b8b565515326411db29b32c6faa6ec084109e02949d3fddc112e39d6
MD5 f82e6f2fabf4afad6408f0649a599ff9
BLAKE2b-256 5f1e198a18db7528a5d6f600bbcb45eb98fb4d7e9ebec3d6211d26c99bb7fa5a

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