{"id":21320404,"url":"https://github.com/kurusugawa-computer/convert-fileformat-with-pandas","last_synced_at":"2026-04-19T17:01:45.555Z","repository":{"id":39008152,"uuid":"265258094","full_name":"kurusugawa-computer/convert-fileformat-with-pandas","owner":"kurusugawa-computer","description":"Convert file format with pandas","archived":false,"fork":false,"pushed_at":"2024-03-04T07:30:42.000Z","size":255,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-22T10:42:01.681Z","etag":null,"topics":["csv","pandas","xlsx"],"latest_commit_sha":null,"homepage":"","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/kurusugawa-computer.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-05-19T13:42:04.000Z","updated_at":"2023-05-16T03:03:59.000Z","dependencies_parsed_at":"2024-02-01T09:28:22.719Z","dependency_job_id":"2025a9c5-bff5-49d1-a40d-15ac2a3dbd9d","html_url":"https://github.com/kurusugawa-computer/convert-fileformat-with-pandas","commit_stats":null,"previous_names":["yuji38kwmt/convert-fileformat-with-pandas"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kurusugawa-computer/convert-fileformat-with-pandas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fconvert-fileformat-with-pandas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fconvert-fileformat-with-pandas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fconvert-fileformat-with-pandas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fconvert-fileformat-with-pandas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurusugawa-computer","download_url":"https://codeload.github.com/kurusugawa-computer/convert-fileformat-with-pandas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fconvert-fileformat-with-pandas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027688,"owners_count":24687081,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csv","pandas","xlsx"],"created_at":"2024-11-21T19:47:34.755Z","updated_at":"2026-04-19T17:01:40.509Z","avatar_url":"https://github.com/kurusugawa-computer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# convert-fileformat-with-pandas\nConvert file format with [pandas](https://pandas.pydata.org/).\n\n[![Build Status](https://app.travis-ci.com/kurusugawa-computer/convert-fileformat-with-pandas.svg?branch=main)](https://app.travis-ci.com/kurusugawa-computer/convert-fileformat-with-pandas)\n[![PyPI version](https://badge.fury.io/py/convpandas.svg)](https://badge.fury.io/py/convpandas)\n[![Python Versions](https://img.shields.io/pypi/pyversions/convpandas.svg)](https://pypi.org/project/convpandas/)\n\n# Requirements\n* Python 3.9+\n\n# Install\n\n```\n$ pip install convpandas\n```\n\nhttps://pypi.org/project/convpandas/\n\n\n# Usage\n\n## csv2xlsx\nConvert csv file to xlsx file.\n\n```\n$ convpandas csv2xlsx --help\nusage: convpandas csv2xlsx [-h] [--sep SEP] [--encoding ENCODING] [--quotechar QUOTECHAR] [--numeric_to_string] [--sheet_name SHEET_NAME [SHEET_NAME ...]]\n                           csv_files [csv_files ...] xlsx_file\n\npositional arguments:\n  csv_files\n\n  xlsx_file\n\noptional arguments:\n  -h, --help            show this help message and exit\n\n  --sep SEP             Delimiter to use when reading csv. (default: ,)\n\n  --encoding ENCODING   Encoding to use when reading csv. List of Python standard encodings.\n                        https://docs.python.org/3/library/codecs.html#standard-encodings (default: utf-8)\n\n  --quotechar QUOTECHAR\n                        The character used to denote the start and end of a quoted item when reading csv. (default: \")\n\n  --numeric_to_string   If specified, write numeric value as string type. If not specified, write numeric value as numeric type. (default: False)\n\n  --sheet_name SHEET_NAME [SHEET_NAME ...]\n```\n\n\nConvert `in.csv` to `out.xlsx` .\n\n```\n$ convpandas csv2xlsx in.csv out.xlsx\n```\n\n\nWhen `CSV_FILE` is `-` , STDIN is used for input. \n\n```\n$ convpandas csv2xlsx - out.xlsx \u003c in.csv\n```\n\nConvert `in1.csv` and `in2.csv` to `out.xlsx` . Sheet name is csv filename without its' suffix.  \n\n```\n$ convpandas csv2xlsx in1.csv in2.csv out.xlsx\n```\n\n![](docs/img/output_xlsx_file_from_multiple_csv.png)\n\nIf `--sheet_name` is specified, sheet name is set.\n\n```\n$ convpandas csv2xlsx in1.csv in2.csv out.xlsx --sheet_name foo bar\n```\n\n![](docs/img/output_xlsx_file_from_multiple_csv2.png)\n\n## xlsx2csv\nConvert xlsx file to csv file.\n\n```\n$ convpandas xlsx2csv --help\nusage: convpandas xlsx2csv [-h] [--sheet_name SHEET_NAME] [--sep SEP] [--encoding ENCODING] [--quotechar QUOTECHAR] xlsx_file csv_file\n\npositional arguments:\n  xlsx_file\n\n  csv_file\n\noptional arguments:\n  -h, --help            show this help message and exit\n\n  --sheet_name SHEET_NAME\n                        Sheet name when reading xlsx. If not specified, read 1st sheet. (default: None)\n\n  --sep SEP             Field delimiter for the output file. (default: ,)\n\n  --encoding ENCODING   A string representing the encoding to use in the output file. (default: utf-8)\n\n  --quotechar QUOTECHAR\n                        Character used to quote fields. (default: \")\n```\n\n\nConvert `in.xlsx` to `out.csv` .\n\n```\n$ convpandas csv2xlsx in.xlsx out.csv\n```\n\n\nWhen `CSV_FILE` is `-` , write to STDOUT. \n\n```\n$ convpandas csv2xlsx in.xlsx -\nname,age\nAlice,23\n```\n\nWith specifying `--sheet_name`, you can select sheet name that you want to convert.\n\n```\n$ convpandas csv2xlsx in.xlsx out.csv --sheet_name sheet2\n```\n\n\n# Usage for Developer\nRefer to https://github.com/kurusugawa-computer/convert-fileformat-with-pandas/blob/main/README_for_developer.md .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurusugawa-computer%2Fconvert-fileformat-with-pandas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurusugawa-computer%2Fconvert-fileformat-with-pandas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurusugawa-computer%2Fconvert-fileformat-with-pandas/lists"}