Połącz dwie ramki danych pand (dołącz do wspólnej kolumny)

Mam 2 ramki danych:

restauracja_id_dataframe

Data columns (total 13 columns):
business_id      4503  non-null values
categories       4503  non-null values
city             4503  non-null values
full_address     4503  non-null values
latitude         4503  non-null values
longitude        4503  non-null values
name             4503  non-null values
neighborhoods    4503  non-null values
open             4503  non-null values
review_count     4503  non-null values
stars            4503  non-null values
state            4503  non-null values
type             4503  non-null values
dtypes: bool(1), float64(3), int64(1), object(8)`

i

restaurant_review_frame

Int64Index: 158430 entries, 0 to 229905
Data columns (total 8 columns):
business_id    158430  non-null values
date           158430  non-null values
review_id      158430  non-null values
stars          158430  non-null values
text           158430  non-null values
type           158430  non-null values
user_id        158430  non-null values
votes          158430  non-null values
dtypes: int64(1), object(7)

Chciałbym dołączyć do tych dwóch ramek DataFrame, aby uczynić je pojedynczą ramką danych za pomocą komendy DataFrame.join () w pandach.

Próbowałem następującej linii kodu:

#the following line of code creates a left join of restaurant_ids_frame and   restaurant_review_frame on the column 'business_id'
restaurant_review_frame.join(other=restaurant_ids_dataframe,on='business_id',how='left')

Ale kiedy próbuję to uzyskać, pojawia się następujący błąd:

Exception: columns overlap: Index([business_id, stars, type], dtype=object)

Jestem bardzo nowy w pandach i nie mam pojęcia, co robię źle, jeśli chodzi o wykonanie oświadczenia o połączeniu.

wszelka pomoc byłaby bardzo mile widziana.

questionAnswers(3)

yourAnswerToTheQuestion