python报错:
You are trying to merge on object and int64 columns. If you wish to proceed you should use pd.concat
原因:因为连接的key,一个是字符型的,进object那个,看下类型肯定不是int,一个是int型的,所以需要让两个key类型一样。
解决办法:让两个key类型一样
例:(改数组某列类型的方法)yueshu[‘相隔天数’]=yueshu[‘相隔天数’].astype(object)