Instantly share code, notes, and snippets.

Embed
What would you like to do?
import pandas as pd
# Inner Join
combined_df = first_df.join(second_df, how='inner')
# Outer Join
combined_df = first_df.join(second_df, how='outer')
# Outer Join, Fill NaN
combined_df = first_df.join(second_df, how='outer').fillna(method='ffill').fillna(0.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment