Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Pushpankar Kumar Pushp pushpankar

🎯
Focusing
Block or report user

Report or block pushpankar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.