When appending to a pandas DataFrame, the appended value doesn't get added to the DataFrame.
I am trying to make an empty DataFrame, and then be able to add more rows onto it, later in my code.
import pandas
df = pandas.DataFrame(columns=["A"])
df.append(DataFrame([[1]]))
print(df)
Output:
Empty DataFrame
Columns: [date, start_time, end_time]
Index: []
Any ideas what I might be doing wrong?
According to the documentation this should work as expected with a new row of value 1 under column A. However, as described above, instead it doesn't append a new row.