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
Metadata
Release files for MultiValueSplitter 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MultiValueSplitter-0.0.2.tar.gz | 2.5 kB | Details |
Release files / MultiValueSplitter-0.0.2.tar.gz
| Download URL | MultiValueSplitter-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7891ce305155031e9052420ebb40bf0b37c0996f816e17f30688a55f6d772f1e
|
|
BLAKE2b-256 checksum How to use checksums |
fa85f8586187beeee0cbffc1161b41f2cc0711d69fec1346f216caff06f6f3da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|