# good for time-series data or handling missing data # standard pd.merge_ordered(df1, df2, on='id', suffixes=('_str1', '_str2')) # forward-fill # missing values are filled with information from previous row fill_method='ffill'
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter