Python Excel - Reading Excel files with Pandas read_excel

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

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

  • @yagizjackson9500
    @yagizjackson9500 Год назад +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!

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

  • @Sempredata
    @Sempredata 5 месяцев назад +3

    Took me all day to find this. Thank you

  • @rezamahdizadeh5755
    @rezamahdizadeh5755 10 месяцев назад

    This is really helpful for getting started. Thankful

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

    Nice introduction to basic pandas here

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

    exactly what I was looking for, thank man!

  • @evansochieng3822
    @evansochieng3822 6 месяцев назад

    Thanks, this video really helped me out a lot!

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

    Awesome presentation , thanks for doing this

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

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

    thank you very much for the quick response

  • @1972challenger
    @1972challenger Год назад +1

    Excellent!

  • @Mr.Aswin_Das
    @Mr.Aswin_Das Год назад +1

    so usefull, thank you

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

    Thank you for this.

  • @cngfnb
    @cngfnb 2 месяца назад

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

  • @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 8 месяцев назад +2

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

    • @veryacademy
      @veryacademy  8 месяцев назад +7

      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.

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

    Many Thanks! This video is awesome

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

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

    thank you so much ... all the love

  • @saifbasheeral-khoja2678
    @saifbasheeral-khoja2678 2 года назад

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

  • @mohammadtaghijabbari8071
    @mohammadtaghijabbari8071 7 месяцев назад

    Perfect ❤

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

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

    Thank you!!

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

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

    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

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

    Awesome

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

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

  • @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 6 месяцев назад

      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!

  • @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!