To format the date "09-jun-2019 00:00:00" in pandas format in Python, you can use the strftime
function from the datetime
module to convert the string to a pandas datetime object. Here's how you can do it:
main.py188 chars8 lines
Now, formatted_date
will hold the pandas datetime object which can be further manipulated or used in pandas operations.
gistlibby LogSnag