Last active
June 6, 2020 22:21
-
-
Save iangelmx/c6a88f11c54baf1c2256a97345afb1ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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