Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spreadsheet_column_splitter-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spreadsheet_column_splitter-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file spreadsheet_column_splitter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for spreadsheet_column_splitter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f321da5e03fd82005e3f3d2f661416325e4decd06300456048e586cbe3472d65
MD5 6df68a08fe9ba502359071951327109d
BLAKE2b-256 716fbda775c1576ca0a3f116dc635b902d1829e4ae496efe57c3d99360b9719a

See more details on using hashes here.

File details

Details for the file spreadsheet_column_splitter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spreadsheet_column_splitter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c79d359b13602711501e0a64a7da486e6b3e758be36b5ff2059e295adbe95e3a
MD5 05d2655a1e06c39979d7061b9cedcfa3
BLAKE2b-256 7f0934e5ebb9dd3dace280583f8f0deb18068f7fed64702a7f0906823e500b20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page