A pre-machine-learning model package
Project description
daxpy
A pre-machine-learning model package.
Package is consisted of following features:
module checker (check_modules): ensures if necessary modules are installed in the environment.
library importer (import_libraries) : imports required libraries.
file reader (read_files): reads or reloads all csv, excel and pickle files given path.
dataset describers (col_stats, df_cols): describes dataset's information.
column summarizers (cat_sum, num_sum, col_sum): gives specific informations about columns.
Installation:
pip install daxpy
Usage:
from daxpy import analyzer
display_ = True # Displays the calculated tables.
plot_ = True # Plots related data given function.
data = '../data/' # Directory where csv, excel and pickle data is loaded or pd.DataFrame() object.
sep_ = ',' # Seperator for csvs.
# Field belov should be run if the pickle files have not been created before. Otherwise next cell can be run to save some time.
mp = analyzer(display_=True, plot_=True, data=data, sep_='|')
mp.rename_dfs({'data1_111':'data_1','data2_1231': 'data2'})
mp.save_dfs('./data')
# Field below can be run after the pickle files are created. (can be run repeatedely)
mp = analyzer(data='./', plot_=True, display_=True)
mp.head_tail(mp.data1);
col_stats = mp.col_stats(mp.data1, display=False)
id_cols, date_cols, num_cols, cat_cols, cat_but_car_cols, num_but_cat_cols, num_but_cat_but_car_cols = mp.df_cols(mp.data1, display_=True, cat_th=32, car_th=10)
# Plot all columns' summary
for cat_col in cat_but_car_cols:
mp.cat_summ(mp.data1, cat_col, threshold=0.01);
for cat_col in cat_cols:
mp.cat_summ(mp.data1, cat_col, threshold=False);
# Analyze num_cols
for num_col in num_cols:
mp.num_summ(mp.data1, num_col)
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
daxpy-0.2.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
daxpy-0.2-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file daxpy-0.2.tar.gz.
File metadata
- Download URL: daxpy-0.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a217cc4a9e98e9f885d6c30cac108ff1d2d81aabb971599a6f64805b48d1f404
|
|
| MD5 |
7596753a5950e10bb244ccc6a5442d94
|
|
| BLAKE2b-256 |
0e4bc7f28e194d35c455bf1be51d13da34e1f6c5e91cf75f173132d39c53ca19
|
File details
Details for the file daxpy-0.2-py3-none-any.whl.
File metadata
- Download URL: daxpy-0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89dc975f74502eca4573db877d83f18d6fdef22ff0767d6b20ac700f6f0dd456
|
|
| MD5 |
01bad4fa8c0d154b2e004e60dd2ea82a
|
|
| BLAKE2b-256 |
0f046f28067a0f0f8b6feecf0c68898e662f3edf812c1cb8680fb49c27654a17
|