string = 'cool'
df = pd.DataFrame(columns=['string_values'])
Append
df.append(string)
I get this error when I try to append it into df. (Is it only for numerical data?)
cannot concatenate object of type "<class 'str'>"; only pd.Series, pd.DataFrame, and pd.Panel (deprecated) objs are valid
I just want to add a string value string = 'cool' into the dataframe, but I get this error.