I'm trying to extract 15O lines from a 500-line dataset. So I would like to do it at random.
My Data
objeto,cor,label
cachorro,branco,animal
manga,laranja,fruta
calça,preta,roupa
My script
import pandas
import pandas as pd
df = pd.read_csv('produit_non_conforme.csv', sep = ',')
mails_random = df.sample(150)
print(mails_random)
But the result is very strange, I do not have the complete line ...
objeto ... label
277 uva ... fruta
116 urso ... animal
495 ... ... ...
Would it be possible to have the full line?