Spaces:
Sleeping
Sleeping
File size: 394 Bytes
5284cc6 a0e774e 5284cc6 a0e774e 5284cc6 a0e774e |
1 2 3 4 5 6 7 8 9 10 11 12 |
import pandas as pd
def label_dataset(data, columns_to_label, new_column_names):
# Dummy labeling logic for demonstration
labeled_data = data.copy()
for col, new_col in zip(columns_to_label, new_column_names):
# Replace this with your actual labeling logic
labeled_data[new_col] = labeled_data[col].apply(lambda x: f"Labeled-{x}")
return labeled_data
|