在python jupyter notebook中读取excel文件时,我正在尝试将pandas数据帧的列数据类型从object更改为float,每次尝试时都会收到ValueError: and‘t convertstring to float:'Variable by base style’的信息。'
我需要获取每个列的类型,以便对其进行适当的预处理。目前,我通过以下方法做到这一点:# but has one type (int, floatdf = pd.DataFrame(input, columns=key_labels)matrix = df.values
由于我只使用pandas获取数据类型<