column_splitter_filler
Project description
Data Preprocessing Library
This Python library provides a function to preprocess data by splitting a specified column values and filling down other columns values. This is particularly useful for handling multi-valued cells in a DataFrame.
Functionality
The main function in this library is column_splitter_filler(file_name, column_to_split,separator).
column_to_split: The name of the column whose values need to be split.
separator: The character or string used as the separator for splitting the values in the column_to_split.
The function splits the values in the column_to_split based on the provided separator, and then fills down the other column values. The processed DataFrame is returned by the function.
Usage
Here is a sample usage of the process_data function:
from MultiValueSplitter import column_splitter_filler
df = pd.read_csv(‘data.csv’) df = column_splitter_filler(df,’Coloumn_Name’,’,’)
print(df)
In this example, data.csv is the CSV file to be processed, Column_Name is the column to be split and Comma is the separator for splitting.
Changelog
0.0.1 - 2023-08-30
– First Release
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
File details
Details for the file MultiValueSplitter-0.0.2.tar.gz.
File metadata
- Download URL: MultiValueSplitter-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7891ce305155031e9052420ebb40bf0b37c0996f816e17f30688a55f6d772f1e
|
|
| MD5 |
43cb10326655e12e4aedda51ea215e26
|
|
| BLAKE2b-256 |
fa85f8586187beeee0cbffc1161b41f2cc0711d69fec1346f216caff06f6f3da
|