Skip to content
Advertisement

Kernel dies when processing DataFrame

I’ve been able to get this to execute once but since then the kernel just hangs and then dies. Any help would be appreciated.

[Dataframe head]

1

JavaScript

Advertisement

Answer

You might want to consider using .apply() function from pandas directly with a custom function or a lambda expression. Something like this

JavaScript

I do not see any conversion to float. I suspect that your kernel died because you are multiplying strings with a large number which can get very nasty results. For example

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