Skip to content

Instantly share code, notes, and snippets.

View pushpankar's full-sized avatar
🎧
Focusing

Pushpankar Kumar Pushp pushpankar

🎧
Focusing
  • London
View GitHub Profile
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)