Group and split a csv or Excel into separate files based on data in a column.
Project description
Spreadsheet Column Splitter
Takes in a column data file and will split the data in the input file into separate files based on a categorical data column.
For example, if you have sales data for fruit, and one of the columns is 'fruit name' and the options are "apple, orange, peach", then Spreadsheet Column Splitter will output three files, one with the apple data, one with the orange data, and one with the peach data.
If there are multiple worksheets, Spreadsheet Column Splitter will split the data in each worksheet into the corresponding output file. Using the fruit example, if the first worksheet was fruit sales, and the second worksheet was fruit inventories, and the third sheet was fruit deliveries, each of those worksheets would be split and put into a corresponding sheet for the particular fruit.
How to use:
splitter(
input_file=input_file,
output_folder=output_folder,
splitter_column=splitter_column,
naming_suffix=naming_suffix,
template_name=template_name
)```
The first 4 parameters are required. Template_name and timezone are optional.
## Parameters:
- input_file: the column data file that holds the data that will be split. Takes csv and excel formats.
- output_folder: subfolder director name that will be created in the current working directory to hold the output files.
- splitter_column: the column that will be used to group and split the data into filtered separate files.
- naming_suffix: a suffix that will be added to the output files.
- template_name: (optional) If you want the data to be added to a formated Excel template file, include that filename/path here.
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
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 spreadsheet_column_splitter-0.1.0.tar.gz.
File metadata
- Download URL: spreadsheet_column_splitter-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f321da5e03fd82005e3f3d2f661416325e4decd06300456048e586cbe3472d65
|
|
| MD5 |
6df68a08fe9ba502359071951327109d
|
|
| BLAKE2b-256 |
716fbda775c1576ca0a3f116dc635b902d1829e4ae496efe57c3d99360b9719a
|
File details
Details for the file spreadsheet_column_splitter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spreadsheet_column_splitter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c79d359b13602711501e0a64a7da486e6b3e758be36b5ff2059e295adbe95e3a
|
|
| MD5 |
05d2655a1e06c39979d7061b9cedcfa3
|
|
| BLAKE2b-256 |
7f0934e5ebb9dd3dace280583f8f0deb18068f7fed64702a7f0906823e500b20
|