Convert file format with pandas
Project description
convert-fileformat-with-pandas
Convert file format with pandas
Requirements
- Python 3.6+
Install
$ pip install convpandas
https://pypi.org/project/convpandas/
Usage
csv2xlsx
Convert csv file to xlsx file.
$ convpandas csv2xlsx in.csv out.xlsx
Options
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.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for convpandas-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe6b21484ffcdc101731ae03dcc972e75295b13f6d37855d2769d299864f106 |
|
MD5 | baa3bbc663edd1a1ea2875d2438e3cda |
|
BLAKE2b-256 | 96b43c3fa3c717af9df2c3ac2dc58f3b905d310d6c138bf16cade728b447b106 |