About 458,000 results
Open links in new tab
  1. How can I open an Excel file in Python? - Stack Overflow

    Aug 4, 2012 · Either you can use a 3rd party python module like xlrd, or save your excel file a CSV file, instead of a normal Excel file. I think the point you are missing is that an excel file …

  2. Use Python to launch Excel file - Stack Overflow

    Mar 11, 2016 · import subprocess subprocess.check_call(['open', '-a', 'Microsoft Excel']) You can also use os and open a specific file: import os os.system("open -a 'path/Microsoft Excel.app' …

  3. Reading/parsing Excel (xls) files with Python - Stack Overflow

    May 31, 2010 · with open(csv_filename) as file: data = file.read() with open(xl_file_name, 'w') as file: file.write(data) You can turn CSV to excel like above with inbuilt packages. CSV can be …

  4. how to open xlsx file with python 3 - Stack Overflow

    May 25, 2016 · I have an xlsx file with 1 sheet. I am trying to open it using python 3 (xlrd lib), but I get an empty file! I use this code: file_errors_location = …

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

    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. import pandas as pd sheet1, sheet2 = None, None …

  6. python library or code to read already open Excel file

    Feb 6, 2015 · I read from open excel sheet live stock price using Copy / Paste method. In Excel , On Calculate Worksheet , use Range("A1:A1").Copy. In Python use …

  7. Modify an existing Excel file using Openpyxl in Python

    You can try the following implementation. from openpyxl import load_workbook import csv def update_xlsx(src, dest): #Open an xlsx for reading wb = load_workbook(filename = dest) #Get …

  8. Opening specific Excel sheet with Python when opening application

    Jan 9, 2020 · I think the best way would be to activate the focus on the sheet first, then open the workbook. from openpyxl import load_workbook wb = load_workbook('my_workbook.xlsx') …

  9. Refresh Excel External Data with Python - Stack Overflow

    Nov 30, 2016 · I have an Excel file that I run a Python script on. The Excel file has external data connections that need to be refreshed before the Python script is run. The functionality I'm …

  10. closing an Excel file using Python if file is already open

    May 15, 2020 · This will close the workbook if it is open. You may need to let python wait for SAP to open the file so something like the following may be necessary prior to trying to close the …

Refresh