Sure, instead of having your information and dataframe be static at time of app startup, you put your layout to use the pd.read_csv. You can have different criteria around whether or not it pulls information or not.
If this doesn’t work for you, and you want to use a schedule, then you can spin up a SQLite db and update that in a separate cron job. Then query the db as your dataframe.
ya, but our dataset is that big, as the read_csv takes almost 5 minutes to load all data into ram.
So, when we call the pd.read_csv at any time (even when no new updates are there), the applicaiton load times increase too much.
Am favorizing a “watchdog” like implementation, which keeps track of the file changes and reload only if required. During the reload, the application shall show a maintenance screen instead the dash app