洪健翔 Hung, Chien-hsiang
洪健翔 Hung, Chien-hsiang

Jul 26, 2022

·
1 min read

python read excel Worksheet index 0 is invalid, 0 worksheets found

A simple solution to python — Pandas: ValueError: Worksheet index 0 is invalid, 0 worksheets found — Stack Overflow

  1. Check your target file
  2. find the sheet’s name

3. launch a new blank excel

4. find the sheet’s name

If they have a different default worksheet name, close all Excels, and regenerate the target excel. (The default worksheet name would be switched back to normal)

Now re pd.read_excel again. It’ll be successful.

Contact me: Hung, Chien-Hsiang (chienhsiang-hung.github.io)

Python
Pandas
Excel
Worksheet
Read Excel File

--

--

More from 洪健翔 Hung, Chien-hsiang

Visit my blog for more https://chienhsiang-hung.github.io/blog/

Recommended from Medium

Rodney F. Witcher, II

Rodney F. Witcher, II

March Update: Hackweek in Vienna + v0.2

Eugene Bogorad

Eugene Bogorad

Making Sonoff switch smarter

Wahyudi

Wahyudi

Build Web App Sosmed with Laravel 8 [Part 1]

Muma Ticha

Muma Ticha

Java Garbage Collection: Memory Leaks and how they can slow down the application.

Alexander

Alexander

A Story About Bug Localization

Termii Inc.

Termii Inc.

To build or to buy SMS Verification —  The guide to weighing cost, risk, & other product roadmap…

Rakesh Awasthi

Rakesh Awasthi

Challenges while migrating to SAP Commerce Cloud — Secrets to Successful SAP Commerce Cloud…

Smart Engines

Smart Engines

Smart Code Engine 1.7.0 | New OCR-based Credit Card Scanner for Mobile and Web apps

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
洪健翔 Hung, Chien-hsiang

洪健翔 Hung, Chien-hsiang

48 Followers

Visit my blog for more https://chienhsiang-hung.github.io/blog/

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech