Skip to content

Instantly share code, notes, and snippets.

@iangelmx
Last active June 6, 2020 22:21
Show Gist options
  • Save iangelmx/c6a88f11c54baf1c2256a97345afb1ab to your computer and use it in GitHub Desktop.
Save iangelmx/c6a88f11c54baf1c2256a97345afb1ab to your computer and use it in GitHub Desktop.
#Para hacer una copia y no modificar el dataframe original
from copy import copy
# Para que las gráficas se vean coquetas xP
import seaborn as sns
sns.set()
#Clonamos content_file
aux = copy(content_file)
#Obtenemos la fecha inicial del análisis
current_day = datetime.today()
start_date = datetime.today() - timedelta( days=15 )
#Filtramos los datos
filtered = aux.loc[ aux['Date'] >= start_date ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment