Skip to content
Advertisement

How fulfil empy df by FOR loop

I need to create a dataframe with two columns: variable, function based on this variable. There is an error in case of next code:

JavaScript

What do I need to fix here? Looks like answer is easy, however it is uneasy to find it… Many thanks for your help

Advertisement

Answer

I like Vaishali’s way of approaching it. If you really want to use the for loop, this is how I would of done it:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement