代码

    1. import pandas as pd
    2. df = pd.read_excel(r'C:\Users\wangjian\Desktop\test\test2.xlsx',usecols=0)
    3. print(df)

    结果
    ValueError: Passing an integer for usecols is no longer supported. Please pass in a list of int from 0 to usecols inclusive instead.