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.4.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for convpandas-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72207eb7de5c301e723853c529a8e6009bd89df9cfb71a770630610cf7d0c233 |
|
MD5 | e51db7c95ab4b4833dbcf6d9aaf388b1 |
|
BLAKE2b-256 | 475ca2156a3533570ee3591ef418b47117d1db42b3b8ca6ae3b00370e5c9d705 |