I have defined an empty data frame with:
insert_row = {
"Date": dtStr,
"Index": IndexVal,
"Change": IndexChnge,
}
data = {
"Date": [],
"Index": [],
"Change": [],
}
df = pd.DataFrame(data)
df = df.append(insert_row, ignore_index=True)
df.to_csv(r"C:\Result.csv", index=False)
driver.close()
But I get the below deprecation warning not to use df.append every time I run the code
Can anyone suggest how to get rid of this warning by using pandas.concat?
