Skip to content

Instantly share code, notes, and snippets.

@iangelmx
Last active June 6, 2020 22:21
Show Gist options
  • Save iangelmx/a35ebc05d7f283b24b28384ceb8695ec to your computer and use it in GitHub Desktop.
Save iangelmx/a35ebc05d7f283b24b28384ceb8695ec to your computer and use it in GitHub Desktop.
#Importamos la clase datetime
from datetime import datetime, timedelta
#Convertimos la columna Date a tipo datetime, para que la podamos manipular.
content_file['Date'] = content_file['Date'].apply( lambda x: datetime.strptime( x, '%b %d, %Y' ) )
#Mostramos los países que se incluyen en los datos
content_file['Entity'].unique()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment