我正在尝试在多个列上联接两个数据帧。即使两个数据帧中都存在所有列,我在执行pd.merge时也会得到一个键错误。
当我尝试加入时,我会
"ValueError: len(left_on) must equal the number of levels in the index of "right""
数据帧1:
>>data.columns
Index(['weather.description', 'weather.icon', 'weather.id', 'weather.main',
'dt', 'main.pressure', 'main.temp_min', 'main.temp_max', 'main.temp',
'main.humidity', 'main.grnd_level', 'main.sea_level', 'wind.speed',
'wind.deg', 'wind.gust', 'id', 'day', 'month', 'hour', 'dd', 'year'],
dtype='object')
>>data.dtypes
weather.description object
weather.icon object
weather.id int64
weather.main object
dt object
main.pressure float64
ma