About 360,000 results
Open links in new tab
  1. importing an excel file to python - Stack Overflow

    May 14, 2017 · I have a basic question about importing xlsx files to Python. I have checked many responses about the same topic, however I still cannot import my files to Python whatever I try. …

  2. I am using Python on Visual Studio Code to import an excel file …

    Nov 29, 2022 · To read an Excel file with Python, you need to install the pandas library. To install pandas, open the command line or terminal and type: pip install pandas Once pandas is …

  3. How to read specific sheets from My XLS file in Python

    Feb 7, 2018 · Thanks for reply theausome. I have 6 sheets in the excel file i would like to read sheet 1,2,3,5. is there any way to do that?

  4. Python: Import excel file using relative path [duplicate]

    May 9, 2018 · I tried to import an excel file which is not within the same folder than the script. I need to get one folder above, then into another folder (B_folder) and there is file 2_file.xlsx I …

  5. python - Using Pandas to pd.read_excel () for multiple (but not all ...

    I have a large spreadsheet file (.xlsx) that I'm processing using python pandas. It happens that I need data from two tabs (sheets) in that large file. One of the tabs has a ton of data and the oth...

  6. how to read certain columns from Excel using Pandas - Python

    I am reading from an Excel sheet and I want to read certain columns: column 0 because it is the row-index, and columns 22:37. Now here is what I do: import pandas as pd import numpy as …

  7. How to get read excel data into an array with python

    import pandas as pd df = pd.read_excel('file_name_here.xlsx', sheet_name='Sheet1') or df = pd.read_csv('file_name_here.csv') This returns a pandas.DataFrame object which is very …

  8. How to read SharePoint Online (Office365) Excel files in Python …

    Jan 24, 2018 · A solution with the code is also located here: Read sharepoint excel file with python pandas Note you need to get the right url, and on windows is to open the excel file from …

  9. python - How can I specify column names while reading an Excel …

    I read an Excel sheet into a Pandas DataFrame this way: import pandas as pd xl = pd.ExcelFile("Path + filename") df = xl.parse("Sheet1") The first cell's value of each column is …

  10. Python Creating Dictionary from excel data - Stack Overflow

    Jan 7, 2013 · I want to create a dictionary from the values, i get from excel cells, My code is below, wb = xlrd.open_workbook('foo.xls') sh = wb.sheet_by_index(2) for i in range(138): …