I need to append many series to a dataframe (averages_per_trip) but am getting empty dataframes each time. It doesn't even work once. What gives? (reference Is it possible to append Series to rows of DataFrame without making a list first?)
Asked
Active
Viewed 77 times
-1
-
2What is `averages` used in your code above? Another dataframe? – Mayank Porwal Nov 08 '18 at 08:23
-
2What you have in intput is not clear. Could you give us the head of all your input df so we can reproduce your issue ? – Charles R Nov 08 '18 at 08:26
1 Answers
0
The problem is with the append function. It does not update the initial dataframe, you must:
df = df.append(stuff)

sdgaw erzswer
- 2,182
- 2
- 26
- 45