2 ms·
If anyone else also wonders what does pandas.DataFrame.join do [1]: > on : str, list of str, or array-like, optional > Column or index level name(s) in the ca
by squaresmile 7y ago
If anyone else also wonders what does pandas.DataFrame.join do [1]:
> on : str, list of str, or array-like, optional
> Column or index level name(s) in the caller to join on the index in other, otherwise joins index-on-index.
> DataFrame.join always uses other’s index but we can use any column in df.
Interesting choices but luckily I have never been bit by this. Maybe because I first looked up on google on how to do join in pandas. Nowadays, I mostly use pd.merge though.
[1] https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.join.html https://pandas.pydata.org/pandas-docs/stable/reference/api/p...