0

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.

Naveed
  • 11,495
  • 2
  • 14
  • 21
Igor Souza
  • 11
  • 2
  • could you please add code / examples as text instead of image? easy copy & paste in general allow to create better solutions. – FObersteiner Nov 04 '22 at 19:05
  • regarding your problem, did you have a look at [How to remove timezone from a Timestamp column in a pandas dataframe](https://stackoverflow.com/q/49198068/10197418)? – FObersteiner Nov 04 '22 at 19:07

1 Answers1

-1

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)