Ad

pandasql: SQL queries on pandas DataFrames

pandasql enables querying pandas DataFrames using SQL, offering a familiar approach for data manipulation. It allows users to leverage SQL syntax for data analysis and cleaning with Python.
Screenshot of yhat/pandasql homepage

pandasql allows users to interrogate pandas DataFrames using standard SQL. It aims to provide a familiar interface for data manipulation, particularly beneficial for those with a SQL background or seeking an alternative to Pythonic data manipulation methods. The project translates SQL queries against pandas DataFrames, enabling complex data filtering, aggregation, and joining operations.

pandasql provides a straightforward way to apply SQL queries to pandas DataFrames. It supports common SQL functionalities like joins, aggregations, and filtering. The project's design allows easy integration with existing pandas workflows. Integration with Python's globals() or locals() simplifies session management for queries.

  • SQL Syntax: Supports standard SQL syntax for querying DataFrames.
  • Dataframe Detection: Automatically detects pandas DataFrames for querying.
  • Joins and Aggregations: Enables performing SQL joins and aggregate functions.
  • Ease of Use: Provides a simple API for executing SQL queries.
  • Integration: Integrates seamlessly with pandas workflows.

pandasql is an archived project that has been available since 2013 and has a sustained community presence. Recent commits indicate continued maintenance, though no new major features have been introduced recently. Documentation is generally complete, with examples and a blog providing supplementary information. Its long history suggests stability and reliability for existing use cases.

pandasql benefits data analysts and scientists who prefer or are familiar with SQL. It simplifies data exploration and manipulation by allowing direct application of SQL queries to pandas DataFrames. This is particularly valuable for tasks like data cleaning, transformation, and analysis, offering an alternative to purely programmatic approaches.

Languages:
Summarize:
Share:
Stars
1,349
Forks
183
Issues
59
Created
13 years ago
Commit
1 year ago
License
MIT
Archived
Yes
Updated 16 days ago

Similar Repositories