ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Import Excel data file into python pandas : Read Excel File

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ธ.ค. 2019
  • This video explain how to read excel file into python with pandas read_excel function with various different argument.
    To Learn more about data science, python, machine learning
    one complete example on python excel read write example
    www.udemy.com/...

ความคิดเห็น • 89

  • @MyStudyIsFun
    @MyStudyIsFun  4 ปีที่แล้ว +1

    Checkout my Best Seller Course on Pandas, Scikit-learn and Data Science Python :
    www.udemy.com/course/data-analysis-with-pandas-python/?referralCode=AD67F6846C5F17E55EC2
    www.udemy.com/course/data-science-with-python-and-pandas/?referralCode=51F15876D7C4B4B92876

  • @rayoh2011
    @rayoh2011 10 หลายเดือนก่อน +6

    First, thank you for posting this tutorial. It's great. But I have a problem, I couldn't load the Excel file:
    It's October, 2023. For people using the newer versions of Pandas, we need to upgrade Pandas' Excel reading module. this is what I Googled:
    Short story: XLRD is the default engine for Pandas to read Excel files, and as it happens XLRD stopped supporting XLSX files.
    If you want to read one anyway, you need to pip install openpyxl, and set it to be the reading engine instead of the default.

    • @nick-oi1xf
      @nick-oi1xf 7 หลายเดือนก่อน

      How do you set openpyxl to be the reading engine?🤔

  • @surya691
    @surya691 ปีที่แล้ว +1

    The best of online tutory 👍👍👍👍👍👍...

  • @aditibahadur8081
    @aditibahadur8081 2 ปีที่แล้ว +11

    Great tutorial. I just wanted to add some extra information from my experience with using the jupiter notebook on anaconda navigator. Ensure that you upload the excel sheet in the anaconda navigator folder as well and then use these codes.

    • @glepht
      @glepht 2 ปีที่แล้ว +4

      Your clutch

    • @Rob-kx5yx
      @Rob-kx5yx ปีที่แล้ว

      dude thank you

  • @julianbogado9378
    @julianbogado9378 3 ปีที่แล้ว +9

    if sb is getting an error with the location, copy the route to the file and add the file name at the end, replacing bars with double bars: 'C:\\xxx\\Example.xlsx'

    • @Jechisha
      @Jechisha ปีที่แล้ว +1

      thank you!

  • @SuperDaxos
    @SuperDaxos ปีที่แล้ว +1

    This was great! Thanks for the clear and helpful examples

  • @dg-hobbymad9898
    @dg-hobbymad9898 หลายเดือนก่อน

    Nice explanation

  • @a-woke5283
    @a-woke5283 4 ปีที่แล้ว +1

    I'm feeling guilty by thinking that If I was still in India I would've judged you because of your accent and not knowledge. But now I really appreciate you for your knowledge and willingness to share it! Thank you!

    • @ChPetru
      @ChPetru 4 ปีที่แล้ว

      what accent is that?

    • @a-woke5283
      @a-woke5283 4 ปีที่แล้ว

      @@ChPetru From what I csn tell its a UP/Bihar accent which are both states in the nort/northeast of India.

    • @mekidesbekele1787
      @mekidesbekele1787 3 ปีที่แล้ว

      Thank you very much

  • @murungicalvin5235
    @murungicalvin5235 ปีที่แล้ว

    Thanks very much sir. This was very helpful and easir to understand

  • @dp6736
    @dp6736 ปีที่แล้ว

    Very good explanation. Thank you very much.

  • @VincentStevenson
    @VincentStevenson 4 ปีที่แล้ว +3

    Great work, thank you for sharing this!

  • @abderrazzakaljalil1375
    @abderrazzakaljalil1375 10 หลายเดือนก่อน

    Good job. Keep going on 👍

  • @kavanakundapur
    @kavanakundapur ปีที่แล้ว +2

    Very well explained. Thank you! Can we also sort data based on filtering data in rows.

  • @prakeerthjishamadhu1375
    @prakeerthjishamadhu1375 ปีที่แล้ว

    Amazing explanation. Thanks a lot

  • @redcabinstudios7248
    @redcabinstudios7248 3 ปีที่แล้ว +2

    Thanks, I was stuck with bloody unnamed column from xl. Publish more videos with simple approach like this.

  • @mhommadhassan2482
    @mhommadhassan2482 4 หลายเดือนก่อน

    Which python ide you use ?

  • @kimyonhee7337
    @kimyonhee7337 2 ปีที่แล้ว

    This video is so helpful. Thank you so much

  • @hridayborah9750
    @hridayborah9750 4 ปีที่แล้ว +2

    very helpful .Thank you so much gentleman.

  • @impersonality3
    @impersonality3 ปีที่แล้ว

    Thank you❤️❤️❤️❤️❤️❤️❤️❤️very helpful

  • @positively8461
    @positively8461 9 หลายเดือนก่อน

    thank you so much

  • @vardhinirudra3052
    @vardhinirudra3052 4 ปีที่แล้ว +3

    Sir, how to read an excel file of complex numbers into python..
    If you can provide a solution, it would be of great help

  • @Versa_Tube.
    @Versa_Tube. 6 หลายเดือนก่อน

    Thankyou sir ❤

  • @zeendabadzeendabad3366
    @zeendabadzeendabad3366 4 ปีที่แล้ว +1

    Amazing! Very helpful👍🏼

  • @tymothylim6550
    @tymothylim6550 3 ปีที่แล้ว +1

    Thank you very much for this video! It really helps me a lot!

  • @BernhardWeber-l5b
    @BernhardWeber-l5b 2 ปีที่แล้ว

    Excellent!

  • @anupamaroy8893
    @anupamaroy8893 2 ปีที่แล้ว +1

    NameError Traceback
    (most recent call last)
    Input In [1], in ()
    ----> 1 pd._version_
    NameError: name 'pd' is not defined

  • @yousif_alyousifi
    @yousif_alyousifi 3 ปีที่แล้ว

    What the other ways to read excel and csv files? Can you make video for that, lease?

  • @shortanimation1533
    @shortanimation1533 3 ปีที่แล้ว +1

    how to do the same in GUI interface

  • @GauravSharmaIN
    @GauravSharmaIN 3 ปีที่แล้ว

    Thank you so much for this detailed tutorial!

  • @rushikamble4457
    @rushikamble4457 2 ปีที่แล้ว

    Thank you so much

  • @abhijitnayak3673
    @abhijitnayak3673 2 ปีที่แล้ว

    How can I fetch the excel or CSV file in pydroid3? I am using this in my TAB. Can't use excel and CSV in pandas.

  • @tanwarrahul5300
    @tanwarrahul5300 2 ปีที่แล้ว

    great sir thank u

  • @jashanbhamra103
    @jashanbhamra103 หลายเดือนก่อน

    cant get it done it always throws the error handle=(open) tell me whats wrong

  • @dmmsai5356
    @dmmsai5356 3 ปีที่แล้ว

    What is the code if we want to get all the column details just giving the row number

  • @granand
    @granand 3 ปีที่แล้ว +1

    Please can you show, how to 1. Run specific version of Python in Pandas as I have 3 different version 2. How to read excel files in various locations, one in sharepoint, other in C:/user etc in windows 10 ?

    • @tymothylim6550
      @tymothylim6550 3 ปีที่แล้ว

      Hello! I am quite new to Python, but I hope this helps:
      1. I assume you mean running different versions of Python. I think if you run Python in an IDE (like Pycharm), you can toggle the Python version!
      2. pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html
      This link shows the wiki for this code. You can refer to "io" parameter in the link. I think that's the correct one!

  • @mazenomar7279
    @mazenomar7279 4 ปีที่แล้ว

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

  • @ajayjangid5968
    @ajayjangid5968 3 ปีที่แล้ว

    If I have only path of the file, how I can read it ?

  • @user-mz5vw2uv2e
    @user-mz5vw2uv2e 3 ปีที่แล้ว

    Sir when you export to excel, how to make the data format be Text or Currency or Percentage by Python. I wanna know the code of converting format.

  • @Yazdah
    @Yazdah 4 ปีที่แล้ว

    Great

  • @ramprakash0
    @ramprakash0 2 ปีที่แล้ว

    How to load excel file which contains filters in jupyter

  • @RussianVideoPodcast
    @RussianVideoPodcast 3 ปีที่แล้ว +1

    Could someone please explain the practical application of this. In the real world, why do we want to import data from excel and work with it this way instead of working with excel documents directly?

    • @MyStudyIsFun
      @MyStudyIsFun  3 ปีที่แล้ว

      Python is general purpose programming, excel is not

    • @RussianVideoPodcast
      @RussianVideoPodcast 3 ปีที่แล้ว

      @@MyStudyIsFun so what can we do with this data using Python that we can't using Excel?

    • @kmahim82
      @kmahim82 3 ปีที่แล้ว +4

      @@RussianVideoPodcast the process can be automated and is actually very fast when working with a big data… excel has a limitation for rows and will take ages to just open the file … python takes few micro seconds to do the same ….

    • @RussianVideoPodcast
      @RussianVideoPodcast 3 ปีที่แล้ว

      @@kmahim82 Thank you!!! This makes sense.

    • @chrisb3189
      @chrisb3189 ปีที่แล้ว

      I am trying to import data and then pick random cells in a GUI format

  • @abrahamarthuryoku7540
    @abrahamarthuryoku7540 2 ปีที่แล้ว

    thankyou sir

  • @mfmalth
    @mfmalth ปีที่แล้ว

    dont need to give the path of the excel?

  • @brahimferjani3147
    @brahimferjani3147 3 ปีที่แล้ว

    thank you

  • @younesdeffous3493
    @younesdeffous3493 4 ปีที่แล้ว

    pls, how do you display a short content from file read script as you do in you video? thank you

  • @prateekyadav7679
    @prateekyadav7679 3 ปีที่แล้ว +1

    I'm getting filenotfound error. have tried everything - double dash, absolute path, adding r before the path, checked case sensitivity. The damn file exists but it keeps showing the error. I'm doing on colab if that's helpful

    • @prateekyadav7679
      @prateekyadav7679 3 ปีที่แล้ว

      This problem was solved on IDE but then I got stuck at plt.plot(wh['height'], wh['weight']) which throws up a keyerror even though my columns are indeed named as such. What to do? Very frustrating :/

    • @kirolloseisa
      @kirolloseisa 2 ปีที่แล้ว

      th-cam.com/video/oH96MB8vQRo/w-d-xo.html

  • @avenewconsulting1118
    @avenewconsulting1118 4 ปีที่แล้ว +1

    hi, how does python know where toi find the excel file please?

    • @MyStudyIsFun
      @MyStudyIsFun  4 ปีที่แล้ว +1

      First at same location where you kept python source code file.

    • @b.woldegergis5158
      @b.woldegergis5158 4 ปีที่แล้ว +3

      @@MyStudyIsFun How can I know where is my python source code located ?

    • @b.woldegergis5158
      @b.woldegergis5158 4 ปีที่แล้ว +1

      for those who had issues like me, here is the tip I found, I just copied pasted the entire Path
      data = pd.read_excel ( ' / Users / xx / xx / xx / xx / xx / xx/ xx / Excel_Sample.xlsx')

    • @rimshaaiman3098
      @rimshaaiman3098 4 ปีที่แล้ว +1

      @@b.woldegergis5158 Hi! can you please elaborate on how to find the path of the excel sheet ? I wasn't able to implement this because of some issue regarding the path.

    • @kmahim82
      @kmahim82 3 ปีที่แล้ว +1

      @@rimshaaiman3098 drag and drop your excel file in the terminal….. it will gice you the path of the excel file where it has been saved… just copy paste the path to your python … thats it

  • @rodrsturge663
    @rodrsturge663 2 ปีที่แล้ว

    xlsb files?

  • @srikrishnanr8155
    @srikrishnanr8155 3 ปีที่แล้ว

    Using Pandas how to select data frame and write into existing workbook in a specific sheet with specific cell range ??? Please help with some references

  • @kizhissery
    @kizhissery 3 ปีที่แล้ว

    Errno 2 issue is plauging me

  • @dilshangautam7703
    @dilshangautam7703 4 ปีที่แล้ว

    Sir in my system is saying FileNotFoundError

  • @marcusaureliusregulus2833
    @marcusaureliusregulus2833 3 ปีที่แล้ว +1

    B.A. Physics😅😅

  • @maxdesko
    @maxdesko 4 ปีที่แล้ว

    Thanks :)

  • @krushnaraut9118
    @krushnaraut9118 4 ปีที่แล้ว

    error filr not found

    • @kirolloseisa
      @kirolloseisa 2 ปีที่แล้ว

      th-cam.com/video/oH96MB8vQRo/w-d-xo.html

  • @abubakarmeraj8040
    @abubakarmeraj8040 2 ปีที่แล้ว

    giving a dislike as basic is not described and your way is very difficult

  • @alinemath5030
    @alinemath5030 ปีที่แล้ว

    I keep getting the error even after adding the location, my code is -> data= pd.read_excel('C:\Users\asyed1\Documents\Graphics Cards Data.xlsx')