Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df['created_at'] = pd.to_datetime(df['created_at'])
- hi = '2021-01-01 00:00:00.000000'
- hf = '2023-12-31 00:00:00.000000'
- filtrar = (datos['created_at'] >= hi) & (datos['created_at'] <= hf)
- resultado = datos.loc[filtrar]
- resultado
- # Crear un Gráfico Básico (Plot) con los datos Filtrados
- import matplotlib.pyplot as plot
- plot.rcParams["figure.figsize"] = 20,11 # ancho: 20 , alto: 11
- resultado.plot(x="created_at", y="precio")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement