Returns folder and sub folders from the data table in csv. Basically a decision tree with folders.
Project description
Data_FolderSplit
_____________________________________________Segregate the data table in a csv file into folders containing sub folders of sliced/ segmented data for a physical representation of a decision tree.
The package includes 2 methods to achieve this.
-
Using maximum uniques -> By limiting the system only use columns under a maximum number of uniques, there is lesser control (which could be better in certain instances.)
-
Using Split by columns -> The user can input the columns or Folder structure order which can create a customized folder structure.
Instructions.
To install the package, perform:
pip install Data_FolderSplit
How to use the methods:
1. To create the folder structure using 'max_uniques':
#Importing Library.
import Data_FolderSplit as DFS
# filepath -> File path for the csv.
# max_uniques -> Max uniques allowed.
# output_folderpath -> Folder within which sub folders will be formed.
#For example:
filepath = r'D:\LinkinPark\Forever\Datasheet1.csv'
max_uniques = 4
output_folderpath = r'D:\ChesterBennington\is\a\Legend'
#To create the folders with sub folders.
DFS.using_maxUniques(filepath, max_uniques, output_folderpath)
2. To create the folder structure using 'Split_with_columnNames':
#Importing Library.
import Data_FolderSplit as DFS
# filepath -> File path for the csv.
# output_folderpath -> Folder within which sub folders will be formed.
#For example:
filepath = r'D:\LinkinPark\Forever\Datasheet1.csv'
output_folderpath = r'D:\ChesterBennington\is\a\Legend'
#To create the folders with sub folders.
DFS.Split_with_columnNames(filepath, output_folderpath)
Have fun. :-)
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
File details
Details for the file Data_FolderSplit-1.3.tar.gz
.
File metadata
- Download URL: Data_FolderSplit-1.3.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35e16cf2d216dced34979e8f0d330d93b6119eefd146881612935e60cd15b03 |
|
MD5 | 252ef8b6d56c30d178f45e9520dc553c |
|
BLAKE2b-256 | ed93b59b0d51da64f4f0cb0d76fc4741fcfb252d16d003625af974aa9303c6fd |
File details
Details for the file Data_FolderSplit-1.3-py3-none-any.whl
.
File metadata
- Download URL: Data_FolderSplit-1.3-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a9c0345d5878770e7c1b0c74a08daed43ad027e53ab42b4cf05edc0a68d83b |
|
MD5 | 21f85452d23484675fa14f9677f5f6c6 |
|
BLAKE2b-256 | 49fc81b3466e06fcb72d683d4c5409a07d80c32d702b540d05f1504eaecf12b6 |