lundi 4 septembre 2023

How can I shuffle data in csv file?

I have the following dataFrame

The data is from csv file and I would like to shuffle in each rows

this is my code that I imported csv file

    df = pd.read_csv('data1.csv',header=None, names=cols)
    df1 = df[['kac']]
    print(df1)

how can i do this?

I want to shuffled rows of csv file




Aucun commentaire:

Enregistrer un commentaire