All Projects → chmp → framequery

chmp / framequery

Licence: other
SQL on dataframes - pandas and dask

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to framequery

stream2segment
A Python project to download, process and visualize medium-to-massive amount of seismic waveforms and metadata
Stars: ✭ 18 (-71.43%)
Mutual labels:  sqlalchemy, pandas
Xarray
N-D labeled arrays and datasets in Python
Stars: ✭ 2,353 (+3634.92%)
Mutual labels:  pandas, dask
Dask
Parallel computing with task scheduling
Stars: ✭ 9,309 (+14676.19%)
Mutual labels:  pandas, dask
Mars
Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and Python functions.
Stars: ✭ 2,308 (+3563.49%)
Mutual labels:  pandas, dask
Choochoo
Training Diary
Stars: ✭ 186 (+195.24%)
Mutual labels:  sqlalchemy, pandas
datatile
A library for managing, validating, summarizing, and visualizing data.
Stars: ✭ 419 (+565.08%)
Mutual labels:  pandas, dask
Swifter
A package which efficiently applies any function to a pandas dataframe or series in the fastest available manner
Stars: ✭ 1,844 (+2826.98%)
Mutual labels:  pandas, dask
Gdeltpyr
Python based framework to retreive Global Database of Events, Language, and Tone (GDELT) version 1.0 and version 2.0 data.
Stars: ✭ 124 (+96.83%)
Mutual labels:  data-frame, pandas
Styleframe
A library that wraps pandas and openpyxl and allows easy styling of dataframes in excel
Stars: ✭ 252 (+300%)
Mutual labels:  data-frame, pandas
espandas
Reading and writing pandas DataFrames in Elasticsearch
Stars: ✭ 24 (-61.9%)
Mutual labels:  data-frame, pandas
carry
Python ETL(Extract-Transform-Load) tool / Data migration tool
Stars: ✭ 115 (+82.54%)
Mutual labels:  sqlalchemy, pandas
neworder
A dynamic microsimulation framework for python
Stars: ✭ 15 (-76.19%)
Mutual labels:  pandas
fastapi-boilerplate
FastAPI boilerplate for real world production
Stars: ✭ 145 (+130.16%)
Mutual labels:  sqlalchemy
open-data-anonimizer
Python Data Anonymization & Masking Library For Data Science Tasks
Stars: ✭ 36 (-42.86%)
Mutual labels:  pandas
GitHub-Stalker
track your GitHub statistics with Pandas
Stars: ✭ 31 (-50.79%)
Mutual labels:  pandas
DataSciPy
Data Science with Python
Stars: ✭ 15 (-76.19%)
Mutual labels:  pandas
telethon-session-sqlalchemy
SQLAlchemy backend for Telethon session storage
Stars: ✭ 34 (-46.03%)
Mutual labels:  sqlalchemy
monthly-returns-heatmap
Python Monthly Returns Heatmap (DEPRECATED! Use QuantStats instead)
Stars: ✭ 23 (-63.49%)
Mutual labels:  pandas
pyfinmod
Financial modeling with Python and Pandas
Stars: ✭ 39 (-38.1%)
Mutual labels:  pandas
pandas-stubs
Pandas type stubs. Helps you type-check your code.
Stars: ✭ 84 (+33.33%)
Mutual labels:  pandas

Build Status

framequery - SQL on dataframes

framequery allows to query dataframes with SQL. Currently it targets both pandas and dask, while aiming for PostgreSQL compatibility. framequery is also integrated with sqlalchemy.

Getting started

Install framequery with pip install framequery and use framequery.execute to run queries against dataframes in your scope:

import framequery as fq
import pandas as pd

stores = pd.read_csv('data/stores.csv')
sales = pd.read_csv('data/sales.csv')

sales_by_country = fq.execute("""
    SELECT country, sum(sales) as total_sales

    FROM sales
    JOIN stores
    ON sales.store_id = stores.id

    GROUP BY country
""")

print(sales_by_country)

For a details usage see the usage guide and the API reference.

Changelog

0.2.0

  • aim for postgres compatibility
  • first-class dask support
  • sqlalchemy support
  • sort_values / order-by for dask
  • refactored code

0.1.0

  • initial release

License

The MIT License (MIT)

Copyright (c) 2016 - 2017 Christopher Prohm

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].