@ashutosh malgaonkar That would be perfectly fine, but would be nice to also include a short notice in the comments of the code referencing the GItHub URL of the code that was used as the template.
Its 2023 and I watching and start learning this beautiful language and framework from Brasil! 🇧🇷 Thanks for you efforts! I go watch ALL of your videos. That was the first time I ran a Streamlit application! Thanks so much!
I've spent all of 1 hour this morning doing this tutorial and the part 1 with the stock web app. That streamlit stuff is...uhhhh...powerful! I feel rather confident in using it already, although that just might be the Dunning-Kruger-effect... =oP
"Let us beat the google algorithm" stylish one liner This was sudden reaction after watching the video how can me make all the web applications online. As I have said I have not done any online search for it. Which I am going to do straight away. Thank you for creating the videos.
Great video once again! And if one uses pickle to load a trained model the code would be even smaller. Excellent. I will try that code to train. Thanks again! I have shared your video so it reaches more people. Keep up!
When i try to run my py file. i am getting this message in command prompt although i have installed streamlit successfully . Please help "'streamlit' is not recognized as an internal or external command, operable program or batch file."
Great video! Until now all my projects are in Github and RPubs and I was looking for some way of creating something interactive. I would like to ask a question that is not related to this video's topic: How should I write my projects descriptions/reports? It has to be in a formal writting style, in 3rd or first person? What I am allowed to say and what I am not?
For formal writing style, you would want to go with the third person (for project/software/tool documentation and for articles/reports) while the first person is for more informal communication (such as for blogs). I would recommend taking a look at Readme.so which I made a video about here (ruclips.net/video/4ATucrptdYA/видео.html) which provides templates for GitHub project documentations.
Awesome work. You're making data science look so simple and fun. But I know that it must have taken years of hard work. May I ask what tools are you using to make these videos (example, what mic, what camera, what recording and editing tools etc.)?
Thanks for the kind words! I try my best to simplify the topic, glad you’re finding it helpful, please share it to your friends and colleagues, would greatly appreciate it. As for the tools, here’s my secret ingredients: blue yeti mic, canon m50 (still using kit lens), screen recording using obs, video editing using adobe premiere pro. Hope this helps in starting your own youtube channel :)
Awesome video @Professor! @Professor, could you please help me out with the below point. 1. Instead of selecting the input data from the slider, how can I upload a excel or csv file with my input data for those given variable? 2. How can I export that predicted output in a excel or csv file? I will greatly thankful to you!
Hi Borthakur, great question, that topic is planned for a future video. So here's a sneak peak of the answer: 1. Use st.file_uploader() for file uploads 2. Create a file then print out the link to it so users can click and download it
@@DataProfessor, thanks a ton for your prompt response. Let me try, in case any concern will let you know. By the way, when are planning to cover this topic in your tutorial session?
Okay sure, I was planning on making something similar for upcoming videos, haha you beat me to it, great job 😃I think the community could benefit from this as well. I could also do a review/reaction video of this web app of yours.
Hello, sorry for the basic question: if sepal & petal values are assigned with different variables each, then where is the variable to assign values of the 3 class labels (setosa, versicolor, virginica)? Thank you and I hope everyone here won't be bothered if I post basic questions in his other videos :s
Can I apply what I learned in this video for data engineering for predictive modeling or in data analytics for information technology using models for business decisions?
Thank you Data Professor I love your content and hope you create more videos like this because I want to utilize data and predictive modeling to improve business decisions as well as using models to determine the best possible sales price for a product and predict a companies growth rate.
Wow I don't know how I missed it, very nice tutorial ! I have a question: How can I make it accessible to everyone ? (not just a localhost) Thanks in advance and keep it up !
I've heard of pyngrok and localtunnel libraries for Public URL deployment, haven't tried them yet but I'm planning to try it soon, you can google them and see if they'll work for streamlit.
Upon change in user input data, does the model get retrained each time, even though the training data has not changed? Is there a way to prevent the unnecessary repeat in training?
professor if i create a object where i have read the data. the output is showing in the web app where it should not be? why the dataframe object is displaying in the app?
If df represents the contents of dataframe as you suggested, Can you check if you have used the print(df) or simply df, which may print out the dataframe. If you find these, you want to delete them from the code. Hope this helps.
That’s absolutely possible with the new components update that Streamlit has rolled out a week ago. It supports JS, React, Vue, etc. docs.streamlit.io/en/stable/develop_streamlit_components.html
can we have the variables which act on the probability of classification? like setosa, what are the variables that make the probability at 0.9 etc ... Thanks!
Thanks Caumaueth, That's a great question! Yes that would be possible, we will have to look at the underlying features. First package that comes to mind that can do this is the SHAP library.
Hi Nitu. The conda activate dp will only work on my computer because I created an environment called dp inside conda. (dp standing for data professor). You too can create an environment for your conda by typing in the command: conda create -n myenv python=3.7 Then you can activate the myenv environment by typing in: conda activate myenv Note: You can change myenv to other names of your choice But before doing this, you will need to install conda (miniconda) into your computer first. Links here docs.conda.io/en/latest/miniconda.html
What if I want to input a range with slider from my data frame (e.g. I have a column "InvoiceDate" ..and I want to input with a single slider the 'start date' and the 'end date' ) ..any other solution solution for this problem is acceptable ..please enlighten me..
Good question, I have finished filming the next Streamlit episode 19 and in that video I show how to use the start and end date selection in streamlit app. Stay tuned for that, make sure to hit on notification bell to be notified as soon as it is released.
@@DataProfessor is there any way like if we change the value via slider only certain section of code should run? I don't want model to be loaded again and again😒
Hi Shobana, Streamlit is a Python library that installs locally or on the hosted server. You can deploy the code to heroku, AWS, GCP, Digital Ocean, Linode, etc. I am planning on making a future video on deployment, please stay tuned for that one.
@@cesar.martinez Hi, the deployment video is Part 4 which is released already, please find Part 4 from this playlist of the entire series so far: bit.ly/dataprofessor-streamlit
Hi Sneha, I think it is possible to use the parameter unsafe_allow_html inside the st.write function. I haven't tried this yet, please let me know how it goes. Currently, there is not a official method yet.
i am getting error when i am tyring to use buttomor map by the ocde st.buttom error is-- AttributeError: module 'streamlit' has no attribute 'buttom' Traceback: File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 338, in _run_script exec(code, module.__dict__) File "C:\Users\HP\Desktop\introstreamlit\first.py", line 43, in if st.buttom("Say hello"): how can i solve this error please help thanks
i'm building a simple heart disease prediction app and it;s giving the error "AttributeError: 'DataFrame' object has no attribute 'data'. can you please help me understand this problem?
@@DataProfessor I did sir, the dataset is loaded but I am just able to input the values like age, sex etc but it was showing that error. And after some time it was showing the 404 error
the webapp.py file needs to be initiated from a terminal prompt, the file would be best created in a text editor or IDE (Atom, Spyder, etc). Jupyter will not run the code as a web app
Hi , I am not able to run the code that you mentioned here or in medium.com's article on this topic using Anaconda Jupyter notebook ... maybe there is very little change to be made ...maybe it could be just as little as a $ sign or etc... . but I'm unfortunately not able to detect that as being a newbie ... can you kindly help me with that ?? Thanks a lot :)
Hi Zenia, thanks for the question. Instead of using Anaconda Jupyter Notebook can you implement this (copy and paste the code from the Medium article and save the file as iris-ml-app.py) in a text editor, I highly recommend Atom which you can download from atom.io (another option is to use IDE such as PyCharm or Spyder). Then you can run the webapp by opening up the Terminal and type in streamlit run iris-ml-app.py Second way is to download the iris-ml-app.py directly from the GitHub: raw.githubusercontent.com/dataprofessor/code/master/streamlit/part2/iris-ml-app.py Then: streamlit run iris-ml-app.py Hope this helps.
It might be possible to make it into an android app as a wrapper and the website as the content but natively this is a web app. The web app can be deployed on various platform such as AWS, GCP, Heroku, etc. I am planning on make a video about it in the future.
I’m currently reading the streamlit documentation trying to find a feature that allow me create editable data tables “a columns with editable cells like excel” if anyone could give me some help, will be appreciated Thanks in advance for your support :slight_smile:
Part 1 of this Streamlit (Web Application in Python) series is here ruclips.net/video/ZZ4B0QUHuNc/видео.html
@ashutosh malgaonkar That would be perfectly fine, but would be nice to also include a short notice in the comments of the code referencing the GItHub URL of the code that was used as the template.
Its 2023 and I watching and start learning this beautiful language and framework from Brasil! 🇧🇷 Thanks for you efforts! I go watch ALL of your videos.
That was the first time I ran a Streamlit application! Thanks so much!
Welcome to the channel, glad to hear that it is helpful 😊
I just finished my introduction of DS. Your channel really help me to start my DS project. Please keep making these type of video. Respect Bro
Only person that can teach data science in easy way💯💯💯
Wow, thanks for the kind words 😆
best youtube channel by far. I cannot stop seeing and learning from this channel. thanks a lot sir!!
Wow, thanks!
@@DataProfessor you are most welcome sir. planning to join your 'buy me a coffee website' to learn more
@@priyadoesdatascience5141 Thanks!
I am a huge fan of this series! Definitely using this for my 3rd project!
That would be awesome! I am glad that you're finding this series helpful 😃
Awesome! I will definitely use it in my projects now on. Great to be here, Chanin.
Awesome Thinam! Thank you!
Top notch. Easy. Fast. No bs. Thanks buddy
Thanks for the kind words!
What a gem of a channel
Thanks for the kind words
I'd like to say thank you for your effort. I have a plan to learn about data handling with your video.
Awesome tutorial. Data Professor is on fire. Videos are coming one after the other. Thanks a lot for all the efforts. :)
Thanks again Shweta for the kind words 😃
I've spent all of 1 hour this morning doing this tutorial and the part 1 with the stock web app. That streamlit stuff is...uhhhh...powerful! I feel rather confident in using it already, although that just might be the Dunning-Kruger-effect... =oP
Glad it helped! Great job!
I actually want to use this exact tutorial for a work project TODAY
Awesome, glad it's useful!
Thank You. finally, i learnt web application in Python
Awesome! Thanks for watching!
"Let us beat the google algorithm" stylish one liner This was sudden reaction after watching the video how can me make all the web applications online. As I have said I have not done any online search for it. Which I am going to do straight away. Thank you for creating the videos.
Awesome, thanks for watching!
This is amazing ! Please make more of such videos showing all other functionalities of streamlit.
Thanks Aditya for watching and for the kind suggestion! Will definitely do 😃
@@DataProfessor It would be great to see how to build a sentiment analyzer based on e.g. twitter data and how to deploy the app.
Great video once again!
And if one uses pickle to load a trained model the code would be even smaller. Excellent. I will try that code to train. Thanks again! I have shared your video so it reaches more people. Keep up!
Thanks Gustavo for finding the video helpful and big thanks for sharing to your friends and colleagues. 😃
Great content. Keep these tutorials coming! Liked and subscribed for that RUclips algorithm!
Awesome, thank you!
Excellent video! I already tried it and will be waiting for more awesome stuff. Thank you Professor.
Thank you for watching and more on the way 😃
Awesome thing. As usual, your videos are the best in class. Please keep enlightening us with your skilled explanations and motivating speeches.
Thanks for the encouraging words 😃
@@DataProfessor Thanks to you too sir for your immense help
interesting stuff, might just make a small web app for my project, seems easy enough
Awesome!
Holy! This is awesome. Thank you for sharing it!
Thanks @Import Data, thanks for watching and the support 😃
Awesome tutorial sir .... i loved it... first time i hear about stream-lit module :)
Thank you for watching Naveen 😃
Thank you so much. helped!
Hi Professor! Thank you for your videos! Was very informative
Thank you for watching 😃
Another great help video. Thanks Sir!
Glad it was helpful 😃
Thanks for this amazing tutorial!!
You're very welcome!
Thank you so much for this.
Lovely video prof. Could you teach us how to host this website so that we can have it in our portfolio and recruiters can use them.
Thank you for watching! Soon to come, the model deployment is in the plan. 😃
When i try to run my py file. i am getting this message in command prompt although i have installed streamlit successfully . Please help
"'streamlit' is not recognized as an internal or external command,
operable program or batch file."
Hello, It worked. My python was not connected to the path. I have just made my first web application :) thanks a lot sir
Glad to hear that it worked and you developed your first app successfully.
Amazing content. Thank you!
Glad it was helpful!
Great Video Mate !
Thanks for watching!
Great video! Until now all my projects are in Github and RPubs and I was looking for some way of creating something interactive. I would like to ask a question that is not related to this video's topic: How should I write my projects descriptions/reports? It has to be in a formal writting style, in 3rd or first person? What I am allowed to say and what I am not?
For formal writing style, you would want to go with the third person (for project/software/tool documentation and for articles/reports) while the first person is for more informal communication (such as for blogs). I would recommend taking a look at Readme.so which I made a video about here (ruclips.net/video/4ATucrptdYA/видео.html) which provides templates for GitHub project documentations.
@@DataProfessor I going to checkout, thanks!
Thanks a lot great content
Thanks for this explanation, and the definition of these components
Can these tools connect to Firebird databases?
Awesome work. You're making data science look so simple and fun. But I know that it must have taken years of hard work.
May I ask what tools are you using to make these videos (example, what mic, what camera, what recording and editing tools etc.)?
Thanks for the kind words! I try my best to simplify the topic, glad you’re finding it helpful, please share it to your friends and colleagues, would greatly appreciate it.
As for the tools, here’s my secret ingredients: blue yeti mic, canon m50 (still using kit lens), screen recording using obs, video editing using adobe premiere pro. Hope this helps in starting your own youtube channel :)
Thanks for sharing.
Awesome video @Professor!
@Professor, could you please help me out with the below point.
1. Instead of selecting the input data from the slider, how can I upload a excel or csv file with my input data for those given variable?
2. How can I export that predicted output in a excel or csv file?
I will greatly thankful to you!
Hi Borthakur, great question, that topic is planned for a future video. So here's a sneak peak of the answer:
1. Use st.file_uploader() for file uploads
2. Create a file then print out the link to it so users can click and download it
@@DataProfessor, thanks a ton for your prompt response. Let me try, in case any concern will let you know.
By the way, when are planning to cover this topic in your tutorial session?
Hi, I’m aiming for within a weeks time, currently implementing the code. 😃
@@DataProfessor, great! Eagerly waiting!
@@borthakur555 Thank you
🎉มีประโยชน์มาก ได้เรียนรู้ความรู้เพิ่มเติม
Sir I made a streamlit Data Exploratory Analysis and Data cleaning app . Can I share with you
Okay sure, I was planning on making something similar for upcoming videos, haha you beat me to it, great job 😃I think the community could benefit from this as well. I could also do a review/reaction video of this web app of yours.
Hello, sorry for the basic question: if sepal & petal values are assigned with different variables each, then where is the variable to assign values of the 3 class labels (setosa, versicolor, virginica)? Thank you and I hope everyone here won't be bothered if I post basic questions in his other videos :s
Thank you
This is so cool!
Thanks Joseff 😃
Can I apply what I learned in this video for data engineering for predictive modeling or in data analytics for information technology using models for business decisions?
Yes, the possibilities are endless, streamlit is a great platform for making data-driven web apps.
Thank you Data Professor I love your content and hope you create more videos like this because I want to utilize data and predictive modeling to improve business decisions as well as using models to determine the best possible sales price for a product and predict a companies growth rate.
Wow I don't know how I missed it, very nice tutorial !
I have a question: How can I make it accessible to everyone ? (not just a localhost) Thanks in advance and keep it up !
I have the same question. All videos are run in localhost. How can we deploy it in a server to everyone.
I've heard of pyngrok and localtunnel libraries for Public URL deployment, haven't tried them yet but I'm planning to try it soon, you can google them and see if they'll work for streamlit.
Nice. Reminds of ipywidgets too.
😃
Hihi, anyway to use streamlit / CSS position button t any point of the frame with background image ?
Professor thnk you.. just make a deployment in heroku..with streamlit web app
Thanks for the suggestion, I’ll definitely consider thus for the future ones.
Aweosome tutorial!! Thanks so much, already following on instagram
Thanks Allan for the support 😃
Upon change in user input data, does the model get retrained each time, even though the training data has not changed? Is there a way to prevent the unnecessary repeat in training?
Yes, we can pickle the model and read it back in. An example of this is shown in the Penguins web app tutorial video of this channel.
hi professor thanks for useful video
Thanks for watching Clark 😃
WOW, thank you !
You are welcome!
professor if i create a object where i have read the data. the output is showing in the web app where it should not be? why the dataframe object is displaying in the app?
If df represents the contents of dataframe as you suggested, Can you check if you have used the print(df) or simply df, which may print out the dataframe. If you find these, you want to delete them from the code. Hope this helps.
Appreciate this❤
Could you please update the video since the sklearn is changed to scikit-learn and there is always a module error?
Is there a way to update the ui to our preference using web dev technologies like react maybe?
That’s absolutely possible with the new components update that Streamlit has rolled out a week ago. It supports JS, React, Vue, etc. docs.streamlit.io/en/stable/develop_streamlit_components.html
super awesome!
Thank you! Cheers!
can we have the variables which act on the probability of classification?
like setosa, what are the variables that make the probability at 0.9 etc ...
Thanks!
Thanks Caumaueth, That's a great question! Yes that would be possible, we will have to look at the underlying features. First package that comes to mind that can do this is the SHAP library.
@@DataProfessor Thank you, i will try it
When I am writing conda activate dp cmd says 'conda' is not recognised as an internal or external command, operable program or batch file.
Pls help
Hi Nitu. The conda activate dp will only work on my computer because I created an environment called dp inside conda. (dp standing for data professor). You too can create an environment for your conda by typing in the command:
conda create -n myenv python=3.7
Then you can activate the myenv environment by typing in:
conda activate myenv
Note: You can change myenv to other names of your choice
But before doing this, you will need to install conda (miniconda) into your computer first. Links here docs.conda.io/en/latest/miniconda.html
@@DataProfessor thanks
Awesome!
Thanks for watching!
sir make an single video building the Ml model building connecting to the streamlit app in an order
What if I want to input a range with slider from my data frame (e.g. I have a column "InvoiceDate" ..and I want to input with a single slider the 'start date' and the 'end date' ) ..any other solution solution for this problem is acceptable ..please enlighten me..
Good question, I have finished filming the next Streamlit episode 19 and in that video I show how to use the start and end date selection in streamlit app. Stay tuned for that, make sure to hit on notification bell to be notified as soon as it is released.
Thanks a ton ♥️♥️♥️
great stuff...
Thanks for watching!
How to change the background color of streamlit sidebar
I have made my webapp but how do i deploy it and can use it showcase others... as the webapp run only on the local host or the network that i create
Thanks for suggestion. Please stay tuned for that, it will be in one of the future videos.
I have a same question and eagrly waiting for next videos
How does it record when we change the value in slider?
From where does the code run all over again after changing slider value?
It is working via reactive programming.
@@DataProfessor is there any way like if we change the value via slider only certain section of code should run?
I don't want model to be loaded again and again😒
Question:
Can we upload/ deploy this to be hosted on Streamlit? just like heroku?..
or its just a package? for a gorgeous gui?
Hi Shobana, Streamlit is a Python library that installs locally or on the hosted server. You can deploy the code to heroku, AWS, GCP, Digital Ocean, Linode, etc. I am planning on making a future video on deployment, please stay tuned for that one.
@@DataProfessor Hi! I'm waiting for that deployment tutorial also (already subscribed)
@@cesar.martinez Hi, the deployment video is Part 4 which is released already, please find Part 4 from this playlist of the entire series so far: bit.ly/dataprofessor-streamlit
@@DataProfessor Excellent!
I'm wondering if it is possible to visualise the plot_model result of pycaret( the way it is present in pycaret) in streamlit if yes how do we proceed
love it ♥
How do you edit the background color and font?
Hi Sneha, I think it is possible to use the parameter unsafe_allow_html inside the st.write function. I haven't tried this yet, please let me know how it goes. Currently, there is not a official method yet.
i am getting error when i am tyring to use buttomor map by the ocde st.buttom error is--
AttributeError: module 'streamlit' has no attribute 'buttom'
Traceback:
File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 338, in _run_script
exec(code, module.__dict__)
File "C:\Users\HP\Desktop\introstreamlit\first.py", line 43, in
if st.buttom("Say hello"):
how can i solve this error please help thanks
Tutorial for data science to build a website for crop yield prediction
i'm building a simple heart disease prediction app and it;s giving the error "AttributeError: 'DataFrame' object has no attribute 'data'. can you please help me understand this problem?
Something seems wrong with the dataset, could you re-check if the dataset can be loaded properly.
@@DataProfessor I did sir, the dataset is loaded but I am just able to input the values like age, sex etc but it was showing that error. And after some time it was showing the 404 error
@@vrushtip502 Are you fixed that error?
@@lasithahiranya1119 yes
@@vrushtip502 How? Can you explain
can i run this code on jupyter notebook or need Atom to run this code
the webapp.py file needs to be initiated from a terminal prompt, the file would be best created in a text editor or IDE (Atom, Spyder, etc). Jupyter will not run the code as a web app
@@DataProfessor tnx sir
A pleasure 😃
Data Professor Visual Studio Code should be ok?
UserWarning: X has feature names, but RandomForestClassifier was fitted without feature names
warnings.warn(
can anyone help me out with this warning?
Hi , I am not able to run the code that you mentioned here or in medium.com's article on this topic using Anaconda Jupyter notebook ... maybe there is very little change to be made ...maybe it could be just as little as a $ sign or etc... . but I'm unfortunately not able to detect that as being a newbie ... can you kindly help me with that ?? Thanks a lot :)
Hi Zenia, thanks for the question. Instead of using Anaconda Jupyter Notebook can you implement this (copy and paste the code from the Medium article and save the file as iris-ml-app.py) in a text editor, I highly recommend Atom which you can download from atom.io (another option is to use IDE such as PyCharm or Spyder). Then you can run the webapp by opening up the Terminal and type in streamlit run iris-ml-app.py
Second way is to download the iris-ml-app.py directly from the GitHub:
raw.githubusercontent.com/dataprofessor/code/master/streamlit/part2/iris-ml-app.py
Then: streamlit run iris-ml-app.py
Hope this helps.
@@DataProfessor thanks a lot for your help :) ^_^
@@jeniajeba7230 A pleasure 😃
how to deploy this on world wide web ??
also can we make android app of it??
It might be possible to make it into an android app as a wrapper and the website as the content but natively this is a web app. The web app can be deployed on various platform such as AWS, GCP, Heroku, etc. I am planning on make a video about it in the future.
Thanks for the reply and eagerly waiting for your next video
@@lonaresrhr1 😃
I’m currently reading the streamlit documentation trying to find a feature that allow me create editable data tables “a columns with editable cells like excel”
if anyone could give me some help, will be appreciated
Thanks in advance for your support :slight_smile:
wanna be friends?
ล้อเล่นไม่ใช่ Spam นะ lol รอ Part 3 อยู่ครับ
Thanks krub, was surprised for a moment. Thanks for the support and please stay tuned for the next one. 😃
🤩👏👏👏👏
i would like to create AI webapp