Every line of 'pandas append dictionary to dataframe' 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()
206 def to_pandas(self): 207 return self.dataframe
8 def __to_df(self, data, instrument): 9 try: 10 data = data[instrument] 11 except: 12 pass 13 14 df = pd.DataFrame(data)[1:] 15 df.set_index('date', inplace=True) 16 df.index = pd.DatetimeIndex(df.index) 17 18 return df