-
-
Notifications
You must be signed in to change notification settings - Fork 190
Usage avec Pandas
CedricJean edited this page May 22, 2020
·
1 revision
Les fichiers Universal Data Tool s'intègre facilement avec pandas. Tout d'abord, exporte exporte ton projet en fichier *.udt.csv
. Puis utilise quelque chose comme ce qui suit.
>>> import pandas as pd
>>> df = pd.read_csv("./myfile.udt.csv")
>>> df[df["path"].str.match("samples")]
path . document output.label
1 samples.0 NaN Wow this is terrible. I hated it. negative_sentiment
2 samples.1 NaN This has made me so happy. I love this. positive_sentiment
3 samples.2 NaN At first I wasn't sure. Then I thought, oh it'... negative_sentiment