0

I am importing a excel file which have several sheets. I am using the next line of code to do that:

books = pd.read_excel('books2.xlsx', sheet_name=None, index_col=None, na_values=['NA']) 

'books' now is a OrderedDict.

The question is: how can I get the name of the sheets as a list?

2
  • 2
    Have you tried list(books)? Commented Apr 9, 2018 at 16:05
  • OMG! That was fast and effective. Thanks. Commented Apr 9, 2018 at 16:07

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.