0

I have a dataset like this:

enter image description here

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

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Enterrador99
  • 121
  • 1
  • 13

0 Answers0