I have a dataset like this:
I want to create a dataframe for each type of COD_VARIABLE, for instance I want a dataframe called 179(doesnt matter the name ofc) with all the rows that have 179 on COD_VARIABLE, and so on with the other values of COD_VARIABLE.
I know how to do it one by one but would be useful to know how to make a function of for loop that does it.
I checked this but it doesnt help me: Create multiple dataframes in loop