Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- # Read the CSV file into a pandas dataframe
- df = pd.read_excel('PA3_template.xlsx')
- # Shuffle the rows
- df = df.sample(frac=1).reset_index(drop=True)
- # Save the shuffled dataframe to a new CSV file
- df.to_excel('shuffled_PA3_template.xlsx', index=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement