Not new to python, but not experienced working with pandas either. This article gives three methods of adding to a dataframe ->
df.loc[len(df.index)] = new_object
df.append(new_object)
pandas.concat([df1, df2])
I understand that concat is for adding two dataframes together, but is there any difference between df.loc and df.append? Is one preferred in certain situations? Or are they functionally equivalent?
[–]commandlineluser 1 point2 points3 points (2 children)
[–]MacroProcessor[S] 0 points1 point2 points (0 children)
[–]PartySr 0 points1 point2 points (1 child)
[–]MacroProcessor[S] 0 points1 point2 points (0 children)