I have a csv file which has a large number of columns (20+). I want to filter the time column ("mins") so that it creates 60 separate dataframes which contains all the data for each minute. I can achieve it using this method below, but it is possible to do it using a for loop instead of repeating myself 60 times?
import pandas as pd
df = pd.read_csv("data.csv")
mins_0 = df[df['mins']==0]
mins_1 = df[df['mins']==1]
mins_2 = df[df['mins']==2]
mins_3 = df[df['mins']==3]
....
mins_59 = df[df['mins']==59]