Every line of 'append multiple dataframes pandas' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
142 def append_data(df1, df2): 143 ''' 144 Append df2 to df1 145 ''' 146 df = pd.concat((df1, df2)) 147 return df.groupby(df.index).first()
29 def _concat(df, type): 30 if df is None: 31 df = pd.DataFrame(_object_blocks[type]) 32 else: 33 _df = pd.DataFrame(_object_blocks[type]) 34 df = pd.concat([df, _df], sort=True) 35 return df