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
Hashes for Data_FolderSplit-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a9c0345d5878770e7c1b0c74a08daed43ad027e53ab42b4cf05edc0a68d83b |
|
MD5 | 21f85452d23484675fa14f9677f5f6c6 |
|
BLAKE2b-256 | 49fc81b3466e06fcb72d683d4c5409a07d80c32d702b540d05f1504eaecf12b6 |