It's not possible to combine the dates.



  • There's an identical, user-id on two dates, which means we're gonna have to tie two dates to one. In the first case, df_1 It worked. ♪ ♪ введите сюда описание изображения

    code df_2

        df_2 = df_p_CG2.merge(df_CG2, how='inner')
        df_2
    

    from outlet: введите сюда описание изображения

    What's the problem?



  • Use the direct indication of the columns on which the association will be directed.

    df_2 = df_p_CG2.merge(df_CG2, left_on='user_id', right_on='user_id', how='inner')
    

    If it doesn't work, we need to look at the other frictions.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2