Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pandas read Excel

  • read_excel
import sys
import pandas as pd

if len(sys.argv) < 2:
    exit("Need filename")
filename = sys.argv[1]

df = pd.read_excel(filename)
print(df)

# to_excel()