This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pa | |
def rmerge(left,right,**kwargs): | |
"""Perform a merge using pandas with optional removal of overlapping | |
column names not associated with the join. | |
Though I suspect this does not adhere to the spirit of pandas merge | |
command, I find it useful because re-executing IPython notebook cells | |
containing a merge command does not result in the replacement of existing | |
columns if the name of the resulting DataFrame is the same as one of the |