I want to create a new dataframe for each unique value of station.
I tried below which gives me only last station data updated in the dataframe = tai_new.i
tai['station'].unique() has 500 values.
for i in tai['station'].unique():
tai_new.i = tai[tai_2['station'] ==i]
Another approach is creating a separate list of
tai_stations = tai['station'].unique()
And then create two loops however, I do not want to type 500 (IF) conditions.