dataprocess
dataprocess é um pacote Python que oferece utilitários simples e eficientes para o processamento e a limpeza de dados.
Recursos
- Processamento de dados: Transforme dados utilizando funções dedicadas.
- Limpeza de dados: Remova valores nulos e prepare dados para análise.
- Estrutura modular para fácil extensão.
Instalação
Instale o pacote diretamente do repositório GitHub:
pip install etl-dataprocess
ou
git clone https://github.com/botlorien/dataprocess.git
cd dataprocess
pip install .
Exemplo de uso
from dataprocess import dataprocessing as hd
if __name__ == '__main__':
def process_something_here():
"""Only a single example to use dataprocess"""
# handle importation files verifying if .xlsx, .csv, .xls, .json, .txt
# and returning its content as 'DataFrame' to (.xlsx, .csv, .xls), 'dict' to (.json) and 'str' to .txt
# if only the directory folder was passed as argument it get the first file in that folder
table = hd.import_file(PATH_DOWNLOADS)
# clear all table removing white spaces and another trashes
# and return a 'DataFrame' with all columns astype('str')
table = hd.clear_table(table)
# Now after the cleaning convert the columns to the apropriate types
# it accepts a mapping argument "dtypes" to list columns to be cast to
# 'datetime' and 'time'. Another common types as 'int', 'float' and 'str' are
# handled automatically analysing its values.
dtype = {
'datetime':[
'date_name_column' # replace it with the name of the column to be cast do 'datetime'
],
'time':[
'hour_and_minute_name_column' # replace it with the name of the column to be cast do 'time'
]
}
table = hd.convert_table_types(
table,
dtypes=dtype
)
print(table)
print(table.info())
return table
process_something_here()
Metadata
Release files for etl-dataprocess 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| etl_dataprocess-0.2.7.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| etl_dataprocess-0.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.5 kB
Release files / etl_dataprocess-0.2.7.tar.gz
| Download URL | etl_dataprocess-0.2.7.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30456021376db4f45e8de4a52399819429291df40fb11de0eabee881c2470cc5
|
|
BLAKE2b-256 checksum How to use checksums |
b56aaf8108192d66e8a1c48670e1b9445bca75c193eccf18732a4ea442c58b41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / etl_dataprocess-0.2.7-py3-none-any.whl
| Download URL | etl_dataprocess-0.2.7-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2be9a56394fc3b08cbbdbbce94bbaa5f07b03e3915e357f2521f72e014a55107
|
|
BLAKE2b-256 checksum How to use checksums |
dc4cb13e092cd5490d0a85824a2359eea8eb2faa012cc6315664bc617830e36d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|