Trying to merge 2 dataframes but get ValueError

前端 未结 7 1154
别那么骄傲
别那么骄傲 2020-11-30 04:15

These are my two dataframes saved in two variables:

> print(df.head())
>
          club_name  tr_jan  tr_dec  year
    0  ADO Den Haag    1368    1422          


        
7条回答
  •  误落风尘
    2020-11-30 05:05

    It happens when common column in both table are of different data type.

    Example: In table1, you have date as string whereas in table2 you have date as datetime. so before merging,we need to change date to common data type.

提交回复
热议问题