Skip to content

Tag: warnings

SettingWithCopyWarning, how to stop it?

I have this code, it’s working for the first 9 itterations and then I get the SettingWithCopyWarning and it doesnt continue on, what can I do? So I have this now, but it still only runs through the first 10 lines of data! Something to do with the first for loop I think! (I know it’s still a for lo…

How to ignore deprecation warnings in Python

I keep getting this : How do I make this message go away? Is there a way to avoid warnings in Python? Answer From documentation of the warnings module: If you’re on Windows: pass -W ignore::DeprecationWarning as an argument to Python. Better though to resolve the issue, by casting to int. (Note that in …