Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Pushpankar Kumar Pushp pushpankar

🎯
Focusing
View GitHub Profile
View makeMultilabel.py
import pandas as pd
df = pd.read_csv("./data.test.pp", sep=" ", header=None, error_bad_lines=False)
df = df.groupby(1)[0].apply(" ".join).reset_index()[[0,1]]
df.to_csv("./multilabelFormat.test.tsv", sep="\t", header=None,
index=False)
You can’t perform that action at this time.