About 231,000 results
Open links in new tab
  1. python - How to open a file in pandas - Stack Overflow

    Jun 4, 2017 · How to open a file in pandas Asked 8 years, 6 months ago Modified 6 years, 1 month ago Viewed 25k times

  2. Should I use `with open (file):` if I `pd.read_csv`?

    Dec 6, 2018 · # Load the Pandas libraries with alias 'pd' import pandas as pd # Read data from file 'filename.csv' # (in the same directory that your python process is based) # Control delimiters, rows, …

  3. pd.read_excel throws PermissionError if file is open in Excel

    Mar 2, 2016 · 6 Generally Excel have a lot of restrictions when opening files (can't open the same file twice, can't open 2 different files with the same name ..etc). I don't have excel on machine to test, but …

  4. Import CSV file as a Pandas DataFrame - Stack Overflow

    To read a CSV file as a pandas DataFrame, you'll need to use pd.read_csv, which has sep=',' as the default. But this isn't where the story ends; data exists in many different formats and is stored in …

  5. How to open my files in data_folder with pandas using relative path ...

    Apr 25, 2017 · import pandas as pd df = pd.read_csv(r"C:\data_folder\data.csv") The prefix r in location above saves time when giving the location to the pandas Dataframe.

  6. Pandas cannot open an Excel (.xlsx) file - Stack Overflow

    Pandas cannot open an Excel (.xlsx) file Asked 5 years ago Modified 3 years, 1 month ago Viewed 226k times

  7. python - How to read pickle file? - Stack Overflow

    The following is an example of how you might write and read a pickle file. Note that if you keep appending pickle data to the file, you will need to continue reading from the file until you find what …

  8. Open excel file in Python: XLRDError: Excel xlsx file; not supported

    May 5, 2021 · Do you have the right filename? It looks like you're trying to open a directory, rather than a specific Excel file within it; it would normally have an .xls or .xlsx extension... (or .xlsm or .xlsb etc).

  9. Reading .data file using Pandas - Stack Overflow

    Jan 18, 2020 · Here are the few questions i have, What is the ".data" file? How they are created? (Mean exported from any application or database) Is this the correct way to read the ".data" file using the …

  10. Read a zipped file as a pandas DataFrame - Stack Overflow

    Sep 19, 2013 · If you want to read a zipped or a tar.gz file into pandas dataframe, the read_csv methods includes this particular implementation.