{"id":25555339,"url":"https://github.com/steviecurran/sql2pandas","last_synced_at":"2026-04-14T03:32:58.993Z","repository":{"id":277108322,"uuid":"931357821","full_name":"steviecurran/SQL2pandas","owner":"steviecurran","description":"Translate SQL queries into pandas operations for fast exploratory analysis and data transformation in Python","archived":false,"fork":false,"pushed_at":"2026-03-23T19:11:03.000Z","size":354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T17:23:18.878Z","etag":null,"topics":["database","pandas","python","query","sql"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steviecurran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-12T06:19:52.000Z","updated_at":"2026-03-23T19:11:07.000Z","dependencies_parsed_at":"2025-02-12T07:35:57.969Z","dependency_job_id":"2ad99b58-2600-4bef-b337-abb1ec0742b4","html_url":"https://github.com/steviecurran/SQL2pandas","commit_stats":null,"previous_names":["steviecurran/sql2pandas"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steviecurran/SQL2pandas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviecurran%2FSQL2pandas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviecurran%2FSQL2pandas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviecurran%2FSQL2pandas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviecurran%2FSQL2pandas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steviecurran","download_url":"https://codeload.github.com/steviecurran/SQL2pandas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviecurran%2FSQL2pandas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","pandas","python","query","sql"],"created_at":"2025-02-20T13:58:22.490Z","updated_at":"2026-04-14T03:32:58.989Z","avatar_url":"https://github.com/steviecurran.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SQL2pandas ##\n\n\nTranslate SQL queries into equivalent pandas operations.\n\n**Motivation**\n\nMany analysts are fluent in SQL but need to transition to Python data workflows.\n\n**Example**\n\n    SQL:\n    SELECT country, AVG(revenue)\n    FROM sales\n    GROUP BY country;\n\nEquivalent pandas:\n\n    df.groupby(\"country\")[\"revenue\"].mean()\n\n**Features**\n\n - SQL SELECT / WHERE / GROUP BY equivalents\n - Translation helper functions\n -  Examples for analysts moving to pandas\n\n\n![](https://raw.githubusercontent.com/steviecurran/SQL2pandas/refs/heads/main/Jupyter_example.png)\n\nI suggest you download the Jupyter notebook and run it locally to get the full functionality (e.g. the table of contents) and let me know if there's anything you want added. \n\nSee https://github.com/steviecurran/sql2csv to convert .sql to .csv, via the C shell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteviecurran%2Fsql2pandas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteviecurran%2Fsql2pandas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteviecurran%2Fsql2pandas/lists"}