Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created February 21, 2020 07:14
Show Gist options
  • Save quantra-go-algo/6e7d172150917ed04278647ba8b61755 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/6e7d172150917ed04278647ba8b61755 to your computer and use it in GitHub Desktop.
#Importing pandas
import pandas as pd
‘to_datetime’ method in pandas are used to convert date strings to dates.
#Using pandas to parse dates
datestrs = ['1/14/2018', '2/14/2018']
pd.to_datetime(datestrs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment