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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for convpandas-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b449baaa7be556077647c78bb9555942194bb9661a742cd13d80bdac4e5e21 |
|
MD5 | 9d96d94c0753469ec0f8621c76deb8cf |
|
BLAKE2b-256 | d98cf6c9d2d9060979d64c8399ebfe0603bc2a64e1fd7cdf186050556c6255a1 |