Amazing tutorial! Normally I need to watch several videos to get the full understanding of something like this. I especially like how you simply explain the feature, show it, then move on. Most training videos drone on for far too long on simple things.
I have seen %matplotlib inline a several times but this is the first time someone has shown the difference between what happens when you use it and when you don't. That is what beginners need. Thanks a lot! Looking forward to learn a lot.
U r the first who created data science playlist , which makes sense and required by companies. I loved ur tutorial from the first min. Of playlist. Thank you so much from bottom of my heart ❤️
If you are using the latest version of Python 3 (I'm using Python 3.6 via Anaconda) the pandas.io.data has been deprecated and Google Finance API has become unreliable. As a result, from pandas_datareader import data as web df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1') no longer works. Use the following from pandas_datareader import data as web from datetime import date df = web.DataReader('S', 'morningstar', date(date.today().year, 1, 1), date.today()) df.tail() before the above will work you will need to install DataReader in Python pip install pandas-datareader
For those facing problems with imports, check this out: Usage Starting in 0.19.0, pandas no longer supports pandas.io.data or pandas.io.wb, so you must replace your imports from pandas.io with those from pandas_datareader: >>>from pandas.io import data, wb # becomes >>>from pandas_datareader import data, wb Many functions from the data module have been included in the top level API. >>>import pandas_datareader as pdr >>>pdr.get_data_fred('GS10')
When I tried writing !ls or %system ls or used pwd instead of ls it gives me an error. 'ls' is not recognised as an internal or external command, operable program or batch file. Please tell me how to fix that
I want to create a 3D figure(cube) from python and the dimensions of the cube should be imported from excel file or any other csv file. That imported values should be used to create the 3d figure. Please tell me how to do
Hi, What is a difference between linemagic and cellmagic ? Why you require these commands ? As understood jyputer notebook will not work as per expectations like graph .. etc Am I correct ? if yes then how we know that we have to use linemagic / cellmagic ?
Hello @codebasic, Many people switch to VSCODE for python notebook with it's in-build Jupiter extension. What is the advantage of using browser over VSCODE. VSCODE also have nice autocomplete features (tabnine) as I found.
Please answer me how to use the data read function like you are only writing data read functions and some examples and then they put all the table.please clear my doubt.
Hi, What is a difference between linemagic and cellmagic ? Why you require these commands ? As understood jyputer notebook will not work as per expectations like graph .. etc Am I correct ? if yes then how we know that we have to use linemagic / cellmagic ? Where I can find out markdown help ? I could not find easily on jupyter notebook documentation easily. Pl help
I've a problem in running import pandas.io.data as web import datetime import matplotlib matplotlib.style.use('ggplot') as it is showing no module named pandas.io.data
iam getting an error "pwd is not recognized" when i type pwd in cmd. Also iam getting error if i type "conda list" in cmd. But if i type in anaconda cmd then it works. how to resolve this issue? do you think it is because of path in environment?
I have installed Anaconda But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]" Any idea why? I am using Python 3.6
In Anaconda tutorial you said jupyter is best installed using anaconda .. I did that now its not recognising anything .. all the paths are confusing .. I have command line open and also python exe file open
hi i tried running the sample code but i get "ModuleNotFoundError: No module named 'imutils'" on ipython.Could you suggest how that module be installed in ipyothn?
thanks for the input! i tried pip install opencv-python and it got installed as i have it in: C:\Users\sam\Anaconda3\Lib\site-packages\opencv_python-3.2.0.7.dist-info However when I ran the code ,I got the error that ImportError: DLL load failed: The specified module could not be found. Is it not installed correctly or do I have to copy something in another file path? ImportError Traceback (most recent call last) C:\Users\sam\local-binary-patterns ecognize.py in () 5 from pyimagesearch.localbinarypatterns import LocalBinaryPatterns 6 from sklearn.svm import LinearSVC ----> 7 from imutils import paths 8 import argparse 9 import cv2 C:\Users\sam\Anaconda3\lib\site-packages\imutils\__init__.py in () 6 7 # import the necessary packages ----> 8 from .convenience import translate 9 from .convenience import rotate 10 from .convenience import rotate_bound C:\Users\sam\Anaconda3\lib\site-packages\imutils\convenience.py in () 4 # import the necessary packages 5 import numpy as np ----> 6 import cv2 7 import sys 8 C:\Users\sam\Anaconda3\lib\site-packages\cv2\__init__.py in () 5 os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__)) 6 ----> 7 from . import cv2 8 sys.modules['cv2'] = cv2 ImportError: DLL load failed: The specified module could not be found.
Hii...Thanks for such nice set of tutorials. While practicing the above codes, I am getting following error: ModuleNotFoundError: No module named 'pandas.io.data' I also tried with several online available solutions, but didnt work. Kindly guide.!!
I have a trained Machine learning model in Jupyter notebook... I want to create a UI for that Machine learning model to give a input and get output... How can i do this.. Please help me... I searching solutions for more than a week..
You can save that machine learning model to a file. I have a tutorial on how to save trained machine learning model. After that you can use some UI like pyqt to build an interface which takes user input and then loads saved model in memory and then it can do predictions.
Hey Siva, thanks for the offer but right now all my teachings are free on RUclips. Did you watch pandas tutorials? That is important for data science. Also after you finish pandas you should start machine learning. That series is not complete yet and I am still adding videos.
codebasics Yes sir i completed pandas series and now i am watching ml playlist. Please complete the playlist as soon as sir. I am enjoying the exercises given by you sir. Thank you for all💖💖
salut i would need a help ... i installed anaconda and whenever i type jupyter notebook in command prompt it throws an error ..."Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 " pls help
While installing anaconda did you select to add it to system path? The command is not added to path environment variable hence you are getting the error.
@@codebasics no sir i think it's added to my system path ...but i have anaconda in d drive ...may be something is wrong... may be you could be right as well ,so pls do tell how to check if anaconda is added to my system path ... i checked my path in environment variables and found "D:\Softwares\Anaconda;D:\Softwares\Anaconda\Library\mingw-w64\bin;D:\Softwares\Anaconda\Library\usr\bin;D:\Softwares\Anaconda\Library\bin;D:\Softwares\Anaconda\Scripts;D:\Softwares\Python\Scripts\;D:\Softwares\Python\;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;C:\Users\HP\AppData\Local\GitHubDesktop\bin; " that means anaconda is there in my path ... p.s i really appreciate your this helping gesture ...
Couldn't import pandas.io.data, got an error message that told me its moved to a separate package. I installed pandas-datareader and used "from pandas_datareader import data, wb" as instructed in the error message, but now I get "pandas_datareader.wb has no attribute DataReader." Where do I go to learn how to resolve this error?
WOW... if it wasn't for this video ill still be confused. I thought all of these codes, and pictures and diagrams was all stupid pictures and tutorials, it ends up being the actual live code and diagrams. that's pretty nice idea.
@@codebasics Thank you for your response. I have restarted many times. Also reinstall python 2-3 times and also try with anaconda .but at last while opening Jupiter notebook new file it shows "python has stopped working". LAPTOP (DELL I3- WINDOW 7) ANYONE HAS ANY IDEA HOW TO FIX IT?
Thanks but, The python code did not work for me and i had to change: import pandas.io.data as web df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1') df.head() to: import pandas_datareader.data as web df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1') df.head()
Hello, I have the following error, what should I do? --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in ----> 1 import pandas_datareader.data as web 2 df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1') 3 df.head() ModuleNotFoundError: No module named 'pandas_datareader'
@@a1ang0r85 from pandas_datareader import data as web df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1') df.head() I also had same problem but i solved it by this code.
If you are getting Implementation error for 'import pandas.io.data as web'. Please replace the code by the follow- import pandas as pd import pandas_datareader.data as web from datetime import datetime start = datetime(2014, 6, 2) end = datetime(2014, 9, 5) google = web.DataReader('GOOG', 'yahoo', start, end) tesla = web.DataReader('TSLA', 'yahoo', start, end) apple = web.DataReader('AAPL', 'yahoo', start, end) Click Enter -> You will not get any error. Instead of df.head() , please use the following code - google.head() tesla.head() apple.head() Click Enter -> You will get your table view.
I see the following error, what should I do ? --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in ----> 1 import pandas.io.data as web 2 df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1') 3 df.head() ModuleNotFoundError: No module named 'pandas.io.data'
I have installed Anaconda But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]" Any idea why? I am using Python 3.7
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
Amazing tutorial! Normally I need to watch several videos to get the full understanding of something like this. I especially like how you simply explain the feature, show it, then move on. Most training videos drone on for far too long on simple things.
Me too!
Exactly
yeah right
I have seen %matplotlib inline a several times but this is the first time someone has shown the difference between what happens when you use it and when you don't. That is what beginners need. Thanks a lot! Looking forward to learn a lot.
😊👍
U r the first who created data science playlist , which makes sense and required by companies.
I loved ur tutorial from the first min. Of playlist.
Thank you so much from bottom of my heart ❤️
If you are using the latest version of Python 3 (I'm using Python 3.6 via Anaconda) the pandas.io.data has been deprecated and Google Finance API has become unreliable. As a result,
from pandas_datareader import data as web
df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1')
no longer works. Use the following
from pandas_datareader import data as web
from datetime import date
df = web.DataReader('S', 'morningstar', date(date.today().year, 1, 1), date.today())
df.tail()
before the above will work you will need to install DataReader in Python
pip install pandas-datareader
thank you man
Thanks man! This was helpful..
thnqq so much bro... really appreciated
Short and simple to understand.
Great job .
Very clear and excellent example for the starter ... Thank you!
Great tutorial, it definitely got me started! Unfortunately, I can't get the datareader to work.
Easy to understand for a beginner :) Thanks a lot! Please keep uploading more videos like this
codebasics do you have a tutorial to understand CoLaboratory in Jupyter?
you explain it beautifully with utmost ease. thank you! i would recommend my python noob buddies to check this out.
Thanks for an easy explanation. Waiting for the next part of this..
Nice and concise!! Love it :) Keep up the good work.
For those facing problems with imports, check this out:
Usage
Starting in 0.19.0, pandas no longer supports pandas.io.data or pandas.io.wb, so you must replace your imports from pandas.io with those from pandas_datareader:
>>>from pandas.io import data, wb # becomes
>>>from pandas_datareader import data, wb
Many functions from the data module have been included in the top level API.
>>>import pandas_datareader as pdr
>>>pdr.get_data_fred('GS10')
from pandas_datareader import data as web
df = web.DataReader('AAPL', 'yahoo', '2018/1/1', '2019/1/1')
df.head()
@@ivena9 Why dont I get data for Google as in
df = web.DataReader('AAPL', 'google', '2018/1/1', '2019/1/1')
run "pip install pandas_datareader" first , if you are getting error : datareader is not recognised.
@@ivena9 bro i am getting string indices must be integers error
@@surrealsoupuniverse Me too. Somebody help me out here
So easy! Great tutorial. Greetings from Colombia!!
Thank You very much. Getting to learn a lot from your videos. Amazing job!!!
It's awesome. Thanks for creating this video and sharing.
When I tried writing !ls or %system ls or used pwd instead of ls it gives me an error.
'ls' is not recognised as an internal or external command, operable program or batch file.
Please tell me how to fix that
Me too pls explain this sir
Use command prompt (not admin) so directory will be user
Thank u so much for the video.. Here I can start quickly using jupyter notebook...
😊👍🤓
Amazing tutorial ! Thanks for that
I must the way you explanation is at top notch
👍😊
Very nice tutorial! Big thank to you!
Nice work Sir, thank you so much.
great tutorial, thank you!
Thanks for the great tutorial!
Excellent tutorial!
Very well explained. Thanks
Great Tutorial, thanks a lot! Could you extend that further? I guess there are a lot more options which are quite helpful.
Great tutorial ! Is there a way to hide code in final version?
awsome tutorial thankx
The explanation is very nice..where is the data set provided which you used ?
Great lesson. thanks.
I want to create a 3D figure(cube) from python and the dimensions of the cube should be imported from excel file or any other csv file. That imported values should be used to create the 3d figure. Please tell me how to do
true amazement how good!
Thanks for this tutorial. What cmd prompt are you using with the '$' symbol? Is this DOS? I get a c prompt not the dollar sign.
Hey Dhaval! Can you please tell a roadmap to learn with your youtube videos?
Hi, What is a difference between linemagic and cellmagic ? Why you require these commands ? As understood jyputer notebook will not work as per expectations like graph .. etc Am I correct ? if yes then how we know that we have to use linemagic / cellmagic ?
Hello @codebasic, Many people switch to VSCODE for python notebook with it's in-build Jupiter extension. What is the advantage of using browser over VSCODE. VSCODE also have nice autocomplete features (tabnine) as I found.
can you please tell me how to use jupyter notebook in vs code
Please answer me how to use the data read function like you are only writing data read functions and some examples and then they put all the table.please clear my doubt.
Hi, What is a difference between linemagic and cellmagic ? Why you require these commands ? As understood jyputer notebook will not work as per expectations like graph .. etc Am I correct ? if yes then how we know that we have to use linemagic / cellmagic ?
Where I can find out markdown help ? I could not find easily on jupyter notebook documentation easily. Pl help
I cannot make that logo. I copy the photo address, but what did the teacher did extra to make it show logo instead of the text of the address ?
6:00 No module named 'pandas.io.data error came
Good tutorial.
I've a problem in running import pandas.io.data as web
import datetime
import matplotlib
matplotlib.style.use('ggplot')
as it is showing no module named pandas.io.data
thanks, codebasics
iam getting an error "pwd is not recognized" when i type pwd in cmd. Also iam getting error if i type "conda list" in cmd. But if i type in anaconda cmd then it works. how to resolve this issue? do you think it is because of path in environment?
I have installed Anaconda
But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]"
Any idea why?
I am using Python 3.6
Thanks :)
same problem
@@shujatmunawar3316 bhai jawab dede
@@mridultripathi4456 Osny to khud sawal pocha ha bhai. Ankhy khol ky dekho
In Anaconda tutorial you said jupyter is best installed using anaconda .. I did that now its not recognising anything .. all the paths are confusing .. I have command line open and also python exe file open
hi i tried running the sample code but i get "ModuleNotFoundError: No module named 'imutils'" on ipython.Could you suggest how that module be installed in ipyothn?
thanks for the input!
i tried
pip install opencv-python and it got installed
as i have it in:
C:\Users\sam\Anaconda3\Lib\site-packages\opencv_python-3.2.0.7.dist-info
However when I ran the code ,I got the error that
ImportError: DLL load failed: The specified module could not be found.
Is it not installed correctly or do I have to copy something in another file path?
ImportError Traceback (most recent call last)
C:\Users\sam\local-binary-patterns
ecognize.py in ()
5 from pyimagesearch.localbinarypatterns import LocalBinaryPatterns
6 from sklearn.svm import LinearSVC
----> 7 from imutils import paths
8 import argparse
9 import cv2
C:\Users\sam\Anaconda3\lib\site-packages\imutils\__init__.py in ()
6
7 # import the necessary packages
----> 8 from .convenience import translate
9 from .convenience import rotate
10 from .convenience import rotate_bound
C:\Users\sam\Anaconda3\lib\site-packages\imutils\convenience.py in ()
4 # import the necessary packages
5 import numpy as np
----> 6 import cv2
7 import sys
8
C:\Users\sam\Anaconda3\lib\site-packages\cv2\__init__.py in ()
5 os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))
6
----> 7 from . import cv2
8 sys.modules['cv2'] = cv2
ImportError: DLL load failed: The specified module could not be found.
Hii...Thanks for such nice set of tutorials.
While practicing the above codes, I am getting following error:
ModuleNotFoundError: No module named 'pandas.io.data'
I also tried with several online available solutions, but didnt work.
Kindly guide.!!
try this
pip install pandas-datareader
---------------------
import pandas_datareader as pdr
#pdr.get_data_fred('GS10')
df = pdr.DataReader('AAPL', 'yahoo', '2022/1/1', '2022/4/30')
I have installed both Python 2.7 and 3.6 in my windows 10 computer. Can I switch between these two versions in Jupyter Notebook?
.
when i try to use jupyter notebook i have not received like you browser page.
I have a trained Machine learning model in Jupyter notebook... I want to create a UI for that Machine learning model to give a input and get output... How can i do this.. Please help me... I searching solutions for more than a week..
You can save that machine learning model to a file. I have a tutorial on how to save trained machine learning model. After that you can use some UI like pyqt to build an interface which takes user input and then loads saved model in memory and then it can do predictions.
please complete full data science playlist as soon as. we are ready to pay sir.
Hey Siva, thanks for the offer but right now all my teachings are free on RUclips. Did you watch pandas tutorials? That is important for data science. Also after you finish pandas you should start machine learning. That series is not complete yet and I am still adding videos.
codebasics Yes sir i completed pandas series and now i am watching ml playlist. Please complete the playlist as soon as sir. I am enjoying the exercises given by you sir. Thank you for all💖💖
salut
i would need a help ... i installed anaconda and whenever i type jupyter notebook in command prompt it throws an error ..."Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 "
pls help
While installing anaconda did you select to add it to system path? The command is not added to path environment variable hence you are getting the error.
@@codebasics no sir i think it's added to my system path ...but i have anaconda in d drive ...may be something is wrong...
may be you could be right as well ,so pls do tell how to check if anaconda is added to my system path ...
i checked my path in environment variables
and found
"D:\Softwares\Anaconda;D:\Softwares\Anaconda\Library\mingw-w64\bin;D:\Softwares\Anaconda\Library\usr\bin;D:\Softwares\Anaconda\Library\bin;D:\Softwares\Anaconda\Scripts;D:\Softwares\Python\Scripts\;D:\Softwares\Python\;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;C:\Users\HP\AppData\Local\GitHubDesktop\bin; "
that means anaconda is there in my path ...
p.s i really appreciate your this helping gesture ...
Couldn't import pandas.io.data, got an error message that told me its moved to a separate package. I installed pandas-datareader and used "from pandas_datareader import data, wb" as instructed in the error message, but now I get "pandas_datareader.wb has no attribute DataReader." Where do I go to learn how to resolve this error?
Thanks, I found the solution! "import pandas_datareader as web" (And I realize now the answer was staring me in the face at 06:23)
I don't know why but whenever I type jupyter notebook in terminal it opens vs code not jupyter notebook anyone can help with this?
Sir I am getting module not found error after installing datareader module pls fix it
when you saved is it got saved in local system?
yes
Import pandas as i.o.data web????
It is showing me that modulenotfounderror
WOW... if it wasn't for this video ill still be confused. I thought all of these codes, and pictures and diagrams was all stupid pictures and tutorials, it ends up being the actual live code and diagrams. that's pretty nice idea.
Perfect!
👍😊
While creating new file ,pop ip comea it shows error " python has stopped working".
Anyone can help me! How to fix it?
can you restart the notebook and try it again?
@@codebasics Thank you for your response. I have restarted many times. Also reinstall python 2-3 times and also try with anaconda .but at last while opening Jupiter notebook new file it shows "python has stopped working".
LAPTOP (DELL I3- WINDOW 7)
ANYONE HAS ANY IDEA HOW TO FIX IT?
Performing the same task of uploading the share video and my python says:
File "", line 2
^
SyntaxError: invalid syntax
What could be the problem?
The cell type is probably code for you. You need to change that to markdown
Thanks but,
The python code did not work for me and i had to change:
import pandas.io.data as web
df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1')
df.head()
to:
import pandas_datareader.data as web
df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1')
df.head()
Hello, I have the following error, what should I do?
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pandas_datareader.data as web
2 df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1')
3 df.head()
ModuleNotFoundError: No module named 'pandas_datareader'
@@a1ang0r85
from pandas_datareader import data as web
df = web.DataReader('AAPL', 'yahoo', '2016/1/1', '2017/1/1')
df.head()
I also had same problem but i solved it by this code.
it is telling that it didn't found panda
If you are getting Implementation error for 'import pandas.io.data as web'.
Please replace the code by the follow-
import pandas as pd
import pandas_datareader.data as web
from datetime import datetime
start = datetime(2014, 6, 2)
end = datetime(2014, 9, 5)
google = web.DataReader('GOOG', 'yahoo', start, end)
tesla = web.DataReader('TSLA', 'yahoo', start, end)
apple = web.DataReader('AAPL', 'yahoo', start, end)
Click Enter -> You will not get any error.
Instead of df.head() , please use the following code -
google.head()
tesla.head()
apple.head()
Click Enter -> You will get your table view.
And what after we are using matplotlib. And that code. We have "df.polt" what we should do
Thankyou!!
You're welcome!
Awesome
I see the following error, what should I do ?
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pandas.io.data as web
2 df = web.DataReader('AAPL', 'google', '2016/1/1', '2017/1/1')
3 df.head()
ModuleNotFoundError: No module named 'pandas.io.data'
stackoverflow.com/questions/51886766/import-pandas-io-data-as-web-gives-me-a-error-saying-no-module-name-for-panda
@@codebasics Thank you for your suggestion, if I am using Jupyter Notebook in Anaconda, what should I do?
Do you got the soln? Please help me too
Thanks.....
import pandas.io.data as web is not supported now, rather use
from pandas_datareader import data, wb
very noice
its not "NOT" book its "NOTE" book
bhai cmon kisike accent ka mazaak nahi udana chahiye, unke bolne ka tarika waisa hai, bro atleast unhone free mein itna sikhaya yaar, aajkal kon sikhata hai itna accha free me?
Thankyou for the tutorial and wonderful explanation...
I have installed Anaconda
But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]"
Any idea why?
I am using Python 3.7
Did you found the issue
I have installed Anaconda
But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]"
Any idea why?
Did you found the issue