Python Pandas Join doesnt work unexpected argument

Question:

import pandas as pd

df1 = pd.read_csv("sdvsdvsvsd.csv")

df2 = pd.read_csv("dsvsdvdv.csv")

df3 = df1.join(df2, how='inner', left_on = 'TIME', right_on = 'TIME')

I created a joint but when I run it, I get a message"unexpected argument". I checked it multiple times and cant see any misstake.

beginner here, please help

Answers:

Use pd.merge(df1, df2, how='inner, left_on ='TIME', right_on = 'TIME') instead.

.join doesn’t have left_on or right_on

Answered By: Jason Barnwell

solved one column Name was missing(" " ) this symbols .thanks everyone

Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.