Python Excel - Reading Excel files with Pandas read_excel

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 42

  • @yagizjackson9500
    @yagizjackson9500 2 роки тому +6

    You are the only one who solved my problem!!! I have had issues for 2-3 weeks and finally i did solve it. Thank you very much!

  • @Sempredata
    @Sempredata 6 місяців тому +3

    Took me all day to find this. Thank you

  • @Westcork-ul1ww
    @Westcork-ul1ww 2 роки тому +7

    Thank you. This is exectly what I needed. The last 5 videos I watched had Excel in the title, but only covered read_csv.

  • @rezamahdizadeh5755
    @rezamahdizadeh5755 11 місяців тому

    This is really helpful for getting started. Thankful

  • @ainomugian
    @ainomugian 4 місяці тому

    Nice introduction to basic pandas here

  • @vancityexe
    @vancityexe 3 роки тому +1

    exactly what I was looking for, thank man!

  • @dilipsebastian5742
    @dilipsebastian5742 2 роки тому +1

    Awesome presentation , thanks for doing this

  • @evansochieng3822
    @evansochieng3822 8 місяців тому

    Thanks, this video really helped me out a lot!

  • @1972challenger
    @1972challenger Рік тому +1

    Excellent!

  • @omoregbeekhator4517
    @omoregbeekhator4517 3 роки тому +1

    thank you very much for the quick response

  • @Mr.Aswin_Das
    @Mr.Aswin_Das Рік тому +1

    so usefull, thank you

  • @EnzoAuditore
    @EnzoAuditore Рік тому +1

    Thank you for this.

  • @mohammadtaghijabbari8071
    @mohammadtaghijabbari8071 8 місяців тому

    Perfect ❤

  • @sujirnair1
    @sujirnair1 2 роки тому

    Many Thanks! This video is awesome

  • @Olimpico230
    @Olimpico230 Рік тому

    thank you so much ... all the love

  • @gustyflores
    @gustyflores 2 роки тому +1

    Thank you!!

  • @jacvanderspuy5618
    @jacvanderspuy5618 2 роки тому +4

    Total beginner and this was perfectly explained. Can pandas handle merged cells? Eg heading over 2 cols? Or should your headings be restricted to 1 row? Cheers

    • @veryacademy
      @veryacademy  2 роки тому +1

      Something like this might help..
      stackoverflow.com/questions/22937650/pandas-reading-excel-with-merged-cells

  • @anthonychung2907
    @anthonychung2907 2 роки тому +1

    ImportError: Pandas requires version '1.2.0' or newer of 'xlrd' (version '1.1.0' currently installed). What should I do ?

    • @JHatLpool
      @JHatLpool 2 роки тому

      Ciao Anthony, you have described what I spent most of my day researching ! To install the 'xlrd' module, you need to (using a command window prompt), type 'pip install xlrd'. Then, restart Spyder (or Pycharm, Jupyter Notebook etc. ... whichever you are using) and the reading of other worksheets within the workbook should be achievable. Without 'xlrd', only the first worksheet is read.

  • @pietraderdetective8953
    @pietraderdetective8953 2 роки тому

    this is an awesome starter tutorial for Pandas!
    I have a question: how to import an excel file with all the formatting? there are several columns containing data with number and percentage format in the excel file, but upon opening the file with pandas using read_excel then all the formatting gone..it becomes like opening a csv file (no formatting).
    I have added: engine = 'openpyxl' but it does nothing.

  • @mrcgunderson1
    @mrcgunderson1 Рік тому

    I'm having an issue with an xlsb file. If I specify say 450 rows, it will read in the data in about.3 seconds. Having 452 rows of data, if I don't specify the data it will read in the data in 50 seconds. Why is that? Is it attempting to read all the rows in the sheet?

  • @patrickjaeger9714
    @patrickjaeger9714 9 місяців тому +2

    why using pandas in the first place? all shown can be done in excel.

    • @veryacademy
      @veryacademy  9 місяців тому +6

      While it's true that some data manipulation and analysis tasks can be performed in Excel, using Pandas offers several advantages and capabilities that Excel may lack or be less efficient in handling:
      Performance: Pandas is optimized for handling large datasets efficiently, making it much faster than Excel for complex operations on big data.
      Flexibility: Pandas provides a wide range of functions and methods for data manipulation, transformation, and analysis, allowing for more complex and customized workflows than Excel.
      Automation: With Pandas, you can easily automate repetitive tasks and create reusable scripts for data processing, saving time and effort compared to manually performing tasks in Excel.
      Integration: Pandas seamlessly integrates with other Python libraries and tools for data analysis, machine learning, and visualization, providing a more comprehensive and powerful data analysis ecosystem.
      Reproducibility: Using Python scripts with Pandas allows for better reproducibility of data analysis workflows compared to manual operations in Excel, as scripts can be version-controlled and shared with others.
      Scalability: Pandas can handle datasets of virtually unlimited size, making it suitable for analyzing both small and large-scale data.
      Customization: With Pandas, you have full control over data processing and analysis, allowing you to implement custom functions and algorithms tailored to your specific requirements.
      Community and Support: Pandas has a large and active community of users and developers, providing extensive documentation, tutorials, and support resources to help you overcome challenges and learn new techniques.
      Overall, while Excel may suffice for basic data analysis tasks, Pandas offers a more powerful, efficient, and flexible solution for handling and analyzing data, especially when dealing with large or complex datasets.

  • @saifbasheeral-khoja2678
    @saifbasheeral-khoja2678 2 роки тому

    Thaks a lot, would you tell me how to get number of rows and colomns?

  • @techOtuts
    @techOtuts 3 роки тому

    Thanks for the nice tutorial. I am on Windows, when try to activate my environment, I get the error message bash: venvscriptsactivate: command not found

  • @eduardodallagnollaux8426
    @eduardodallagnollaux8426 Рік тому

    how do i import only desirable rows from excel?
    example: i have 10 rows. How to import only the first 5 rows? or how to import only a table that is above or below from another in excel?

  • @cngfnb
    @cngfnb 4 місяці тому

    Can i export processed data to xlsx again after do it in pandas?

  • @mahmedtuny8174
    @mahmedtuny8174 3 роки тому +1

    Awesome

  • @VladArnoldner
    @VladArnoldner 2 роки тому

    If you had 25 sheets, how would you get the total number of the sheets in the workbook? I need to go through a series (all) of sheets and calculate the sum of values from the same cell loacated in all 25 sheets. Thank you!

    • @faridahizoune6757
      @faridahizoune6757 8 місяців тому

      I think you have to use a for loop, for i in range(25), and each time return and add the count number to a variable

  • @eightsoft
    @eightsoft 3 роки тому

    Great!

  • @wilfriedvanhees
    @wilfriedvanhees 2 роки тому +1

    Good explanation. Unfortunately, is it hard to follow due to the white text on black background

  • @omoregbeekhator4517
    @omoregbeekhator4517 3 роки тому +2

    no link for the excel files, anyway thanks for the tutorials

    • @veryacademy
      @veryacademy  3 роки тому +1

      Sorry will add them right now!