{"id":26183820,"url":"https://github.com/mikata-project/df_io","last_synced_at":"2025-06-15T07:05:49.490Z","repository":{"id":62567935,"uuid":"274619898","full_name":"Mikata-Project/df_io","owner":"Mikata-Project","description":"Python helpers for doing IO with Pandas DataFrames","archived":false,"fork":false,"pushed_at":"2022-02-14T14:03:11.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T00:31:32.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mikata-Project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-24T08:45:21.000Z","updated_at":"2023-01-26T09:20:25.000Z","dependencies_parsed_at":"2022-11-03T16:30:49.998Z","dependency_job_id":null,"html_url":"https://github.com/Mikata-Project/df_io","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Mikata-Project/df_io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fdf_io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fdf_io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fdf_io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fdf_io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mikata-Project","download_url":"https://codeload.github.com/Mikata-Project/df_io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fdf_io/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935602,"owners_count":22934387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-11T22:49:22.405Z","updated_at":"2025-06-15T07:05:49.468Z","avatar_url":"https://github.com/Mikata-Project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# df_io\nPython helpers for doing IO with Pandas DataFrames\n\n# Available methods\n## read_df\n\n* bzip2/gzip/zstandard compression\n* passing parameters to Pandas' readers\n* reading from anything, which `smart_open` supports (local files, AWS S3 etc)\n* most of the available formats, Pandas supports\n\n## write_df\n\nThis method supports:\n* streaming writes\n* chunked writes\n* bzip2/gzip/zstandard compression\n* passing parameters to Pandas' writers\n* writing to anything, which `smart_open` supports (local files, AWS S3 etc)\n* most of the available formats, Pandas supports\n\n# Documentation\n\n[API doc](https://github.com/Mikata-Project/df_io/tree/master/docs/df_io.md)\n\n### Examples\n\nWrite a Pandas DataFrame (df) to an S3 path in CSV format (the default):\n\n```python\nimport df_io\n\ndf_io.write_df(df, 's3://bucket/dir/mydata.csv')\n```\n\nThe same with gzip compression:\n\n```python\ndf_io.write_df(df, 's3://bucket/dir/mydata.csv.gz')\n```\n\nWith zstandard compression using pickle:\n\n```python\ndf_io.write_df(df, 's3://bucket/dir/mydata.pickle.zstd', fmt='pickle')\n```\n\n\nUsing JSON lines:\n\n```python\ndf_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json')\n```\n\nPassing writer parameters:\n\n```python\ndf_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json', writer_options={'lines': False})\n```\n\nChunked write (splitting the df into equally sized parts and creating/writing outputs for them):\n\n```python\ndf_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json', chunksize=10000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikata-project%2Fdf_io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikata-project%2Fdf_io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikata-project%2Fdf_io/lists"}