给定一个数据帧列表,我希望迭代地合并它们并返回单个数据帧。输入:frames (熊猫数据框列表)和on_columns (包含要合并的列名的字符串或字符串列表)。如何使用df.merge完成此操作?“给定数据帧列表,以迭代方式合并它们并返回单个数据帧
"""HINT: Use slice on frames when iterating and mer
我正在尝试合并两个都有'product_desc‘列的数据帧。我使用的是Pandas 0.13和Python 2.7。small_df = pd.merge(small_df, linregress_df, on = 'product_desc', how = 'left')pandas.core.index.InvalidIndexError: Reindexing only valid with uniquely valued