About 472,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. python - How can I specify column names while reading an Excel file ...

    import pandas as pd xl = pd.ExcelFile("Path + filename") df = xl.parse("Sheet1") The first cell's value of each column is selected as the column name for the dataFrame, and I want to specify my own …

  3. Reading an Excel file in python using pandas - Stack Overflow

    2 Here is an updated method with syntax that is more common in python code. It also prevents you from opening the same file multiple times.

  4. Python: Import excel file using relative path - Stack Overflow

    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 tried: df ...

  5. I am using Python on Visual Studio Code to import an excel file but I ...

    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 installed, …

  6. 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...

  7. Import multiple excel files into python pandas and concatenate them ...

    I would like to read several excel files from a directory into pandas and concatenate them into one big dataframe. I have not been able to figure it out though. I need some help with the for loop and

  8. python - Load xlsx file from drive in colaboratory - Stack Overflow

    Nov 22, 2017 · How can I import MS-excel (.xlsx) file from google drive into colaboratory?

  9. 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 powerful …

  10. Python pandas: how to specify data types when reading an Excel file ...

    Sep 15, 2015 · However, when I import the file into a pandas dataframe, the column gets imported as a float. This means that, for example, '0614' becomes 614. Is there a way to specify the datatype when …