This package can read data from a couple of different file types, can summarize data, handle missing values and can encode your data using one hot encoding.
Project description
how to use this package:
after you download the package from PyPi
import this package like the following
import YasinDataPrepKit as Dtk
your can read a csv, json and Excel files and in order to do that your need to do the next:
first you need to make an object and call the ReadingData class
obj = dtk.ReadingData(r”Your file absolute path”)
make sure to always use (r””)when reading your data for correctly read your file path
after this your call the read() function like this
df = obj.read()
to print your data
print(df)
after you have done these steps correctly then the rest is easy you can do many function for data summary for instance:
to find mean of int and float columns you use
print(obj.calculate_mean())
to find the maximum
print(obj.max_value())
for handling missing values you can use either the remove or impute methods
print(obj.handle_missing_values(‘remove’)) print(obj.handle_missing_values(‘impute’))
the ‘remove’ and ‘impute’ is you specifying the strategy you want to use to handle missing values
there is also a function for encoding using one hot encoding
print(obj.encode_categorical_data())
here is a list for all functions other than the ones above that you can use from this package
to calculate sum
print(obj.calculate_sum())
to calculate minimum
print(obj.min_value())
to calculate median
print(obj.median_value())
to calculate variance
print(obj.var_value())
to calculate standard deviation
print(obj.std_deviation())
to calculate correlation coefficient
print(obj.cor_coefficient())
Project details
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
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
File details
Details for the file yasDataPrepKit-0.4.1.tar.gz.
File metadata
- Download URL: yasDataPrepKit-0.4.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d3dc7fa397f02c144fb9784225c206f78ca88d7944ea6c4ea2ae69d26af61d
|
|
| MD5 |
55418967af2bb9146067d608dab225e5
|
|
| BLAKE2b-256 |
30473ecef25fc6f232719a6a09207bb3af32d755fb1f1b05617695fb4e12ef1b
|
File details
Details for the file yasDataPrepKit-0.4.1-py3-none-any.whl.
File metadata
- Download URL: yasDataPrepKit-0.4.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e7b279ba9f8f45fcbeca176396f7897decd138d659523795fc46151a44f8e92
|
|
| MD5 |
9b760aa681bb0ca86664807d5c9b56d1
|
|
| BLAKE2b-256 |
137b71f920ebf76f9806fb472a31cafb195314c8d221d87183fb4a4879b67fce
|