Home > database >  Pandas convert date
Pandas convert date

Time:11-05

Hey guys I need some help, my date is not in the correct format.

I made a function to convert all columns of dates it works but, it gives a return of SettingWithCopyWarning.

Origin(https://i.stack.imgur.com/5xlT4.png)

function(https://i.stack.imgur.com/hZe9f.png)

warning(https://i.stack.imgur.com/iglZB.png)

can you tell me how to solve this I've tried in several ways.

CodePudding user response:

If your code is working and is doing its job you can always ignore the error by adding this at the top. I would not recommend it in a very large scale project.

from pandas.core.common import SettingWithCopyWarning

warnings.simplefilter(action="ignore", category=SettingWithCopyWarning)
  • Related