Hi Folks,
I’m brand new at this and was wondering if someone could possibly help or point me to right direction.
I’m using pandas, streamlit bar chart to display some data that is being FTP to a PC every 30 minutes.
The first issue i was getting is that, because the file is open, it stop coming through.
Then I decide to rename the file in a script, but then because it comes through every 30 minutes it keep saying that file exist so it can’t be changed.
Example:
old_file = “C:\users\reportingRpt\Staging_today.csv”
new_file = “C:\users\reportingRpt\todayRpt.csv”
os.rename(old_fine,new_file)
st.bart_chart(new_file)
Again, sorry I’m very new with this, and just learning…
Thanks