Guest User

Untitled

a guest
Apr 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import pandas as pd
  2. df = pd.read_csv("./data.test.pp", sep=" ", header=None, error_bad_lines=False)
  3. df = df.groupby(1)[0].apply(" ".join).reset_index()[[0,1]]
  4. df.to_csv("./multilabelFormat.test.tsv", sep="\t", header=None,
  5. index=False)
Add Comment
Please, Sign In to add comment