combien de colonnes un pandas dataframe peut-il avoir

You get an out of memory error because you run out of memory, not because there is a limit on the number of columns.
Hambo