Read .CSV file in Jupyter notebook for Python from any directory

Поделиться
HTML-код
  • Опубликовано: 24 сен 2024
  • It explains how to read data in from any directory in a Jupyter notebook for python.

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

  • @ruminasmarume
    @ruminasmarume 3 года назад +16

    Best video ever. Its fun how some channels made 20 minutes+ explaining simple things and the majority of those channels dont really address the problem

  • @MoniqNansy
    @MoniqNansy 4 года назад +45

    "r" has saved my day.. God bless you!

  • @icytadbull
    @icytadbull 4 года назад +7

    This video kickstarted my usage of Python with Jupyter Notebook, because I finally managed to read csv files using pd.read_csv(r"Filepath") instead of pd.read_csv("Filepath")

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

    This "r" solved the errors that I had from importing files. Many Thanks this video was really helpful. God bless you

  • @mdsaddam-cm3qi
    @mdsaddam-cm3qi 4 года назад +2

    Thanks a lot I was very panic to importing the data u have explained very well and finally I have imported CSV file

  • @jeffgibson645
    @jeffgibson645 Год назад +2

    PWD command helped me find the directory it was reading from! Thanks 🙏

  • @Mrscartermahone
    @Mrscartermahone 4 года назад +9

    Thank you so much, i've been stuck with this for like days now. this means so much to me

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

    Thank you, sir, I was stuck while reading the dataset multiple times. I Used to change the CSV file location to the same folder to make it easier but now I got correct way for that.

  • @richardadeyemi1706
    @richardadeyemi1706 3 года назад +1

    Thanks, I have been trying to get the .csv file my tutor sent me for an assignment into jupyter notebook and I have been very frustrated 'cause nothing worked. Had to move the file to desktop and from there tried your techniques and "boom" it worked. Why did we have to use the "r" before the file path. I removed it and got and error! Thanks a million.... you just saved a frustrated guy about to give up on python!

  • @pragyatjyotibaruah6061
    @pragyatjyotibaruah6061 2 года назад +11

    you can also remove the error by changing the code to this:
    variable=pd.read_csv("C:\\User\\Akshat\\Desktop\\Siddhesh\Data.csv")

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

    Holy shit, I spent hours trying to figure out my directory, thank you so much!

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

    Thanks a lot I wasted 2 hours of my time searching for a solution..finally find solution in this short video😊

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

    Wow, thank you very much,, I was stuck for hours trying to open a file. should have looked here first instead of googling it.. Thank you again.

  • @modernmobileangler9511
    @modernmobileangler9511 5 лет назад +4

    Mate, you are a life saver!

    • @thedatanext3795
      @thedatanext3795  5 лет назад +1

      thank you! pls subscribe my channel , so that you will be notified for additional videos.

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

      True yaar

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

    Thank you so much for sharing this....I was stuck with the file import since yesterday🙏🙏🙏🙏

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

    You saved my life. a simple r
    Thank you and God bless

  • @simrangoswami06
    @simrangoswami06 3 года назад +1

    Thank you for this video.😊
    Deepest Gratitude!!✨

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

    Thank you. This video helped me to import csv file to Jupyter.

  • @Vishnu-pg3lx
    @Vishnu-pg3lx Год назад

    thank you so much sir I was so frustrated earlier because of file error you literally solved my whole problem🎉❤😅😊

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

    Thank you, you make it so easy

  • @skkkks2321
    @skkkks2321 5 лет назад +2

    Thank you man, I had the problem showing me unicode error,you helped me to got it fix.Appreciated your efforts to make it easy.Looking any small project if you have tutorials on any python library please.

    • @thedatanext3795
      @thedatanext3795  5 лет назад +1

      thank you! pls subscribe my channel , so that you will be notified for additional videos.

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

    Thanku. I have been spending hrs on this. U really sloved my puzzle video is awesome

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

    The shortest most useful thank you 🙏

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

    it is helpful video.. i can manage my file location and copy to PWD location. now it can read the file properly. thanksssssssssssssssssssss

  • @k.y.3580
    @k.y.3580 3 года назад +1

    Thank you very much. It is a great video. Short and useful!!!

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

    Thankyou so much. you saved my project

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

    I wish I could like this more than once I almost broke my keyboard because my csv wasn't going through

  • @ShaliniSingh-ue6sx
    @ShaliniSingh-ue6sx 3 года назад

    Thank you so much ..u dnt know how much u helped me 🙏🙏🙏🙏

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

    Quick and good. Thank you!

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

    that pwd was all the difference for me, using Mac, the paths must be different, thanks!

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

    simply as that "r" thank you so much!

  • @a.aldahhan
    @a.aldahhan 2 года назад

    It worked, many thanks :)

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

    thank you very much sir .... this video really helped me a lot..keep uploading such videos

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

    Hello, my csv file is saved in the same path as jupyter notebook. I still get the error when I try to use 'r' and specify the location The error reads 'filenotfounderror'. Please help me on the same.

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

    Thank you. Greetings from colombia.

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

    you are a lifesaver - thank you

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

    BEST VIDEO, GOD BLESS BROTHER.

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

    when i put r ,then the command which you have mentioned is not working ,where as by removing the r command works

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

    Sir how do we apply formulas on columns of CSV data?

  • @kyz_
    @kyz_ 5 лет назад +1

    Thank you, you have helped. you're a good man

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

      thank you! pls subscribe my channel , so that you will be notified for additional videos.

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

    Thank you, this r"" trick was super helpful.

  • @MrNimbus53
    @MrNimbus53 5 лет назад +4

    when I do this, it does not print the full dataset, only the first 5 rows, how do i fix this?

    • @freehumanjen3506
      @freehumanjen3506 5 лет назад +5

      Just print the variable. if u use head it gives the first five rows and if you use tail it will give you the last 5 rows :)

  • @vasusingh35
    @vasusingh35 5 лет назад +1

    thanks alot sir finally got the output, r method worked.

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

      thank you! pls subscribe my channel , so that you will be notified for additional videos.

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

    thanks a lot such a minute error i was doing from a long time ...

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

    Thanks, man. You save my time.

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

    how can we read datasets from servers into jupyter notebook using read_csv()

  • @roshni.s4707
    @roshni.s4707 2 года назад

    Thank you bhaiya!!! For the r tip. ❤️❤️❤️❤️❤️

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

    Sir how to display data to be draw as curve for example temperature with depth?

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

    first Like my friend !!!!! good luck :)

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

    Best video ever. Thank you very much!!

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

    That single alphabet has changed everything 😂

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

    While Importing a File in Jupyter Notebook , It gives Error as Permission Error , How can we fix it

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

    Thank you for the great tip! like other, "r" saved me!

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

    Really really helpful

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

    Really helped me thanku alotttt

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

    thank you so much it fixed my problem!

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

    DEAR SIR,
    fir bhi problem solve nhi ho raha hai
    "r" ka use karne ke baad bhi
    File "", line 1
    data = pd.read_csv("C:\Users\YOGESH\Desktop\PD\supermarkets.csv")
    ^
    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

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

    thankyou very much for you detailed explaination

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

    Thank you so much haha. This works

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

    sir i am getting error pd is not defined

  • @abimbolaobadare6691
    @abimbolaobadare6691 5 лет назад +1

    You're a life saver.
    Thank you.

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

    Really thanks for helping

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

    Sir r add Karne k baad BHI error araha h - name 'pd' is not defined.. plz tell how to resolve!!

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

    Thank you, helped me a lot!

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

    Thank you so much ❤🙏

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

    thanks sir ..your video helped me a lot

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

    what is import os?

  • @38_c_shivanikesarwani70
    @38_c_shivanikesarwani70 Год назад +1

    This commands work thanku

  • @quaninhphamhong7130
    @quaninhphamhong7130 11 месяцев назад

    thank you so much, sir!!!

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

    thank you very much very helpful

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

    Thanks for the video. How could I read a markdown table from a text block and import in into a variable in a code block in the same notebook?

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

    thanks a lot man !!! i've used in ubuntu 20.04 (focal fossa), and this problem make me hopeless, there is a bunch of tutorial but its just for windows / mac usage. but this all i want for my linux (Y)

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

    Working now, thanks

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

    i want to load the Alexnet pretraind model to jupyter notebook,tell me how, Please ?!

  • @PechettiLeelakrishna
    @PechettiLeelakrishna 3 месяца назад

    Bro why are taking desktop\
    Siddesh

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

    Thank you, this was helpful

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

    thnk you brother u saved me

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

    Thank you sir doubt cleared

  • @mayurrathod3713
    @mayurrathod3713 5 лет назад +1

    thanks I hope you will be uploding such simple douts

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

      thank you! pls subscribe my channel , so that you will be notified for additional videos.

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

      Even after using r as syntax before file name,, it is showing as file not found error.. Plz save me

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

    God bless this man you have saved my wam

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

    I got the error as..UnicodeDecodeError....plz help me out

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

    Super sir

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

    Thank you, for this tutorial

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

    Thanks a lot.it really hepled🤩😄😄😄

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

    thank you soooo much!

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

    R for Randi had saved my day again😅

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

    Thanks its really helpful

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

    Thank you sir...it worked

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

    How to save the table?

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

    Error:name pd us not defined

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

    Thanku so much ❤

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

    Thank youuu man ❤️🥰🥰

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

    This is only useful for a few data sets, what to do when there are thousands of entries ?

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

      Same problem with me also.I have hundreds of data in my csv file,but even after trying the method used in this video,error is shown and i cannot read my csv file

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

      Same bro

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

    THANK you Alot

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

    Very much thanks friend.

  • @anthonyj.mickey6451
    @anthonyj.mickey6451 3 года назад

    Thank you - good stuff

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

    Thank You for the video. Sir

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

    Thanks for that "r"!!!

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

    thank you it works!!!!

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

    Super nice method