I´m trying to do a app where I can upload a Dataframe as csv which is constantly updating, this in order to simulate a data entry in real time and to be able to plot.
I’ve tried with several codes, PyGitHub more tha anything, but I haven’t had any luck and I’m starting to think that maybe I’ve been complicating the solution too much.
My doubts here are, How can I upload a Dataframe automatically to my github repository? and some recommendation to graph in an animated way? since in the initial tests the matploblib .animate() command did not work
Unless the data has to be written to GitHub for some reason, then I agree, I think you are making it too complicated.
In general, an “auto-commit” pattern to GitHub really isn’t one of its strong suits. Rather, your pattern is more database-like. The most simple way to accomplish what you’re trying to do would be using a public Google Sheet (assuming the data isn’t actually sensitive):
Just write to the sheet, when the user hits the submit button, Streamlit will read back from the sheet and then plot the results.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.