No project description provided
Project description
Replace values in txt and csv
Library to replace the values in a ".txt" and ".csv" files.
Install
pip install replace-value-txt
Import:
import replace_value_txt
Function:
replace_value_txt(input_path, dict_replace, output_path=None, encoding='utf-8')
- input_path: String with the name of the path you want to replace the value with. Example:
C:/Users/example.csv
- dict_replace: Dict with the data you want replace. Example:
{';': ',', 'ã':'a'}
- output_path: String with the name of the path you want to save. Defaults to
input_path
. Example:C:/Users/example_output.csv
- encoding: String with the name of the encoding. Defaults to
utf-8
. You can useutf-8, cp1252, ISO-8859-1
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
Built Distribution
Close
Hashes for replace_value_txt-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2e359c2464f42f8b4455af2aaa821b639cec9d0019a196a0da478350d98800 |
|
MD5 | 0a757a2c22612b202649659d9f28460b |
|
BLAKE2b-256 | a053771b67036d9876218e00224ebb1b7d24bf574172f2cd44f392fffed9a311 |