Convert file format with pandas
Project description
convert-fileformat-with-pandas
Convert file format with pandas.
Requirements
- Python 3.7+
Install
$ pip install convpandas
https://pypi.org/project/convpandas/
Usage
csv2xlsx
Convert csv file to xlsx file.
$ convpandas csv2xlsx in.csv out.xlsx
Options:
--sep TEXT Delimiter to use when reading csv. [default:,]
--encoding TEXT Encoding to use when reading csv. List of Python standard encodings . [default: utf-8]
--quotechar TEXT The character used to denote the start and end of a quoted item when reading csv.
--string_to_numeric BOOLEAN If true, convert string to numeric. [default: utf-8]
xlsx2csv
Convert xlsx file to csv file.
$ convpandas xlsx2csv in.xlsx out.csv
Options:
--sheet_name TEXT Sheet name when reading xlsx. If not specified, read 1st sheet.
--sep TEXT Field delimiter for the output file. [default: ,]
--encoding TEXT A string representing the encoding to use in the output file. [default: utf-8]
--quotechar TEXT Character used to quote fields.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
convpandas-0.1.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for convpandas-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e321eec2a271b0fc38b737432ba4d1dceea8cf2ceb9b204e92a91b8f8d9198 |
|
MD5 | 85fce8959a8038038171884ddb341bbb |
|
BLAKE2b-256 | c787e8e7166c71f445f08c2b65b4789324d3420a2012073036e11bb1e673498b |