Jupyter Notebook Tutorial / Ipython Notebook Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 139

  • @codebasics
    @codebasics  2 года назад +1

    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

  • @DaKLang
    @DaKLang 7 лет назад +27

    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.

  • @sejalanand23
    @sejalanand23 4 года назад

    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.

  • @dishantkumbhar8822
    @dishantkumbhar8822 4 года назад +4

    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 ❤️

  • @FoamyDave
    @FoamyDave 6 лет назад +18

    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

  • @bhawin101283
    @bhawin101283 7 лет назад +3

    Short and simple to understand.
    Great job .

  • @kevinzhang8974
    @kevinzhang8974 7 лет назад +2

    Very clear and excellent example for the starter ... Thank you!

  • @HomelessOnline
    @HomelessOnline 7 лет назад +7

    Great tutorial, it definitely got me started! Unfortunately, I can't get the datareader to work.

  • @ranjanjinka87
    @ranjanjinka87 7 лет назад +1

    Easy to understand for a beginner :) Thanks a lot! Please keep uploading more videos like this

    • @ranjanjinka87
      @ranjanjinka87 7 лет назад

      codebasics do you have a tutorial to understand CoLaboratory in Jupyter?

  • @mchandresh
    @mchandresh 7 лет назад

    you explain it beautifully with utmost ease. thank you! i would recommend my python noob buddies to check this out.

  • @harshalkaushik7024
    @harshalkaushik7024 7 лет назад +2

    Thanks for an easy explanation. Waiting for the next part of this..

  • @sibusisomoyo2066
    @sibusisomoyo2066 7 лет назад +1

    Nice and concise!! Love it :) Keep up the good work.

  • @Juanlopezalurralde
    @Juanlopezalurralde 4 года назад +3

    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')

    • @ivena9
      @ivena9 4 года назад +2

      from pandas_datareader import data as web
      df = web.DataReader('AAPL', 'yahoo', '2018/1/1', '2019/1/1')
      df.head()

    • @akshaybanaye
      @akshaybanaye 4 года назад

      @@ivena9 Why dont I get data for Google as in
      df = web.DataReader('AAPL', 'google', '2018/1/1', '2019/1/1')

    • @thisisankitgaur
      @thisisankitgaur 4 года назад

      run "pip install pandas_datareader" first , if you are getting error : datareader is not recognised.

    • @surrealsoupuniverse
      @surrealsoupuniverse Год назад +1

      @@ivena9 bro i am getting string indices must be integers error

    • @jasrajsinghchhabda7472
      @jasrajsinghchhabda7472 Год назад

      @@surrealsoupuniverse Me too. Somebody help me out here

  • @DiegoAndresAlvarezMarin
    @DiegoAndresAlvarezMarin 7 лет назад +1

    So easy! Great tutorial. Greetings from Colombia!!

  • @khansaluqman8665
    @khansaluqman8665 4 года назад

    Thank You very much. Getting to learn a lot from your videos. Amazing job!!!

  • @sivaprasadpandeti8470
    @sivaprasadpandeti8470 7 лет назад +2

    It's awesome. Thanks for creating this video and sharing.

  • @simransuri9427
    @simransuri9427 4 года назад +8

    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

  • @vinodkumarreddy7696
    @vinodkumarreddy7696 5 лет назад

    Thank u so much for the video.. Here I can start quickly using jupyter notebook...

  • @abdolrezamohseni9787
    @abdolrezamohseni9787 3 года назад

    Amazing tutorial ! Thanks for that

  • @SandeepChaudhary-vx9zy
    @SandeepChaudhary-vx9zy 4 года назад

    I must the way you explanation is at top notch

  • @DucNguyen-js5gs
    @DucNguyen-js5gs 7 лет назад

    Very nice tutorial! Big thank to you!

  • @izharkhankhattak
    @izharkhankhattak 4 года назад

    Nice work Sir, thank you so much.

  • @marcelmartch
    @marcelmartch 4 года назад

    great tutorial, thank you!

  • @lostaxisgis
    @lostaxisgis 7 лет назад

    Thanks for the great tutorial!

  • @marco.nascimento
    @marco.nascimento 6 лет назад

    Excellent tutorial!

  • @rajtheo
    @rajtheo 7 лет назад

    Very well explained. Thanks

  • @DanielWeikert
    @DanielWeikert 7 лет назад

    Great Tutorial, thanks a lot! Could you extend that further? I guess there are a lot more options which are quite helpful.

  • @patrysia0000
    @patrysia0000 4 года назад +1

    Great tutorial ! Is there a way to hide code in final version?

  • @shahdabkhatri1079
    @shahdabkhatri1079 6 лет назад

    awsome tutorial thankx

  • @osurineelima6348
    @osurineelima6348 4 года назад

    The explanation is very nice..where is the data set provided which you used ?

  • @robindong3802
    @robindong3802 7 лет назад

    Great lesson. thanks.

  • @naveenm6612
    @naveenm6612 2 года назад

    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

  • @armandosantos5352
    @armandosantos5352 7 лет назад

    true amazement how good!

  • @Dan-rn6xm
    @Dan-rn6xm 6 лет назад

    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.

  • @sejalanand23
    @sejalanand23 4 года назад

    Hey Dhaval! Can you please tell a roadmap to learn with your youtube videos?

  • @paragjp
    @paragjp 6 лет назад

    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 ?

  • @rudrakshya1
    @rudrakshya1 4 года назад

    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.

  • @priyatrivedi3560
    @priyatrivedi3560 Год назад

    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.

  • @paragjp
    @paragjp 6 лет назад

    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

  • @zhengxijiang4087
    @zhengxijiang4087 5 лет назад

    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 ?

  • @mohitb5230
    @mohitb5230 4 года назад

    6:00 No module named 'pandas.io.data error came

  • @mannykshatriya
    @mannykshatriya 6 лет назад

    Good tutorial.

  • @ved1802
    @ved1802 6 лет назад +1

    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

    • @ved1802
      @ved1802 6 лет назад

      thanks, codebasics

  • @MrPrudhvisai
    @MrPrudhvisai 4 года назад

    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?

  • @shujatmunawar3316
    @shujatmunawar3316 7 лет назад +1

    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

  • @mohitb5230
    @mohitb5230 4 года назад

    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

  • @samvenu2314
    @samvenu2314 7 лет назад

    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?

    • @samvenu2314
      @samvenu2314 7 лет назад

      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.

  • @prateeklnmiit
    @prateeklnmiit 3 года назад +5

    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.!!

    • @deveshsinghal6775
      @deveshsinghal6775 2 года назад +2

      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')

  • @tharinduabeysinghe3126
    @tharinduabeysinghe3126 6 лет назад

    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?

  • @enr2023
    @enr2023 4 года назад

    when i try to use jupyter notebook i have not received like you browser page.

  • @HariHaran-mb3hh
    @HariHaran-mb3hh 5 лет назад

    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..

    • @codebasics
      @codebasics  5 лет назад

      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.

  • @sivaganesh4489
    @sivaganesh4489 5 лет назад

    please complete full data science playlist as soon as. we are ready to pay sir.

    • @codebasics
      @codebasics  5 лет назад

      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.

    • @sivaganesh7727
      @sivaganesh7727 5 лет назад

      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💖💖

  • @devprakash5320
    @devprakash5320 5 лет назад

    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

    • @codebasics
      @codebasics  5 лет назад

      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.

    • @devprakash5320
      @devprakash5320 5 лет назад

      @@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 ...

  • @HomelessOnline
    @HomelessOnline 7 лет назад

    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?

    • @HomelessOnline
      @HomelessOnline 7 лет назад

      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)

  • @anushreesharma5835
    @anushreesharma5835 Год назад

    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?

  • @padminilakshmanan1638
    @padminilakshmanan1638 4 года назад

    Sir I am getting module not found error after installing datareader module pls fix it

  • @prasunbhattacharjee8415
    @prasunbhattacharjee8415 4 года назад

    when you saved is it got saved in local system?

  • @amnasarwar1793
    @amnasarwar1793 8 месяцев назад

    Import pandas as i.o.data web????

  • @viigneshreddy3125
    @viigneshreddy3125 4 года назад +1

    It is showing me that modulenotfounderror

  • @sto2779
    @sto2779 4 года назад

    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.

  • @zaidalattar2483
    @zaidalattar2483 4 года назад

    Perfect!

  • @architagrawal1563
    @architagrawal1563 5 лет назад

    While creating new file ,pop ip comea it shows error " python has stopped working".
    Anyone can help me! How to fix it?

    • @codebasics
      @codebasics  5 лет назад

      can you restart the notebook and try it again?

    • @architagrawal1563
      @architagrawal1563 5 лет назад

      @@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?

  • @adeboolusegun1857
    @adeboolusegun1857 4 года назад

    Performing the same task of uploading the share video and my python says:
    File "", line 2

    ^
    SyntaxError: invalid syntax
    What could be the problem?

    • @codebasics
      @codebasics  4 года назад

      The cell type is probably code for you. You need to change that to markdown

  • @l3aIIin23
    @l3aIIin23 5 лет назад

    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()

    • @a1ang0r85
      @a1ang0r85 4 года назад

      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'

    • @navinthapa3611
      @navinthapa3611 4 года назад

      @@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.

  • @muhammadzakiahmad8069
    @muhammadzakiahmad8069 3 года назад

    it is telling that it didn't found panda

  • @karanpardeshi4189
    @karanpardeshi4189 3 года назад +2

    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.

    • @manishaarya247
      @manishaarya247 2 года назад

      And what after we are using matplotlib. And that code. We have "df.polt" what we should do

  • @sivabonthada1076
    @sivabonthada1076 3 года назад

    Thankyou!!

  • @arjunkirpal9776
    @arjunkirpal9776 7 лет назад

    Awesome

  • @a1ang0r85
    @a1ang0r85 4 года назад

    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'

    • @codebasics
      @codebasics  4 года назад

      stackoverflow.com/questions/51886766/import-pandas-io-data-as-web-gives-me-a-error-saying-no-module-name-for-panda

    • @a1ang0r85
      @a1ang0r85 4 года назад

      @@codebasics Thank you for your suggestion, if I am using Jupyter Notebook in Anaconda, what should I do?

    • @manishaarya247
      @manishaarya247 2 года назад

      Do you got the soln? Please help me too

  • @mamunurrashid5652
    @mamunurrashid5652 7 лет назад

    Thanks.....

  • @uddalakmitra1084
    @uddalakmitra1084 4 года назад

    import pandas.io.data as web is not supported now, rather use
    from pandas_datareader import data, wb

  • @zunzwak4482
    @zunzwak4482 2 года назад

    very noice

  • @bluemoon7922
    @bluemoon7922 6 лет назад +1

    its not "NOT" book its "NOTE" book

    • @surrealsoupuniverse
      @surrealsoupuniverse Год назад

      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?

  • @BhanuPrakash-bu6gi
    @BhanuPrakash-bu6gi 3 года назад

    Thankyou for the tutorial and wonderful explanation...

  • @nuturesoul6832
    @nuturesoul6832 4 года назад +2

    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

  • @pawankumar-yt5lc
    @pawankumar-yt5lc 4 года назад

    I have installed Anaconda
    But on Jupyter notebook browser, when i click on new, its not showing "Python[conda=root]"
    Any idea why?