Plotly re-drawing old data

After changing the data that will be used to draw the plot, plotly keep one object from the previous run. Does anyone know anything I try to fix this?

First run, when everything is ok:

After changing the dates you can see that one shape is still there from the previous run.

Aditional info:

  • This happens locally and on prod (using Render)
  • using latest versions of every

requirements.txt:
beautifulsoup4==4.12.2
boto3==1.28.68
botocore==1.31.68
firebase_admin==6.3.0
matplotlib==3.8.2
numpy==1.25.2
pandas==2.0.3
plotly==5.18.0
python-dotenv==1.0.0
pytz==2023.3.post1
Requests==2.31.0
scipy== 1.11.4
st_pages==0.4.5
st_paywall==0.1.6
streamlit==1.31.1
streamlit_extras==0.4.0
stripe==7.0.0
thetadata==0.9.11
ydata_profiling==4.6.4
pytest==7.4.0
pyperclip==1.8.2