You want to import only a certain range of data from an Excel spreadsheet (.xlsm format, as there are macros) into a pandas dataframe. Did it like this:
data = pd.read_excel(filepath, header=0, skiprows=4, nrows= 20, parse_cols = "A:D")
But it looks like nrows only works with read_csv ()? What would be the equivalent for read_excel ()?
python pandas
Gabriel
source share