[Exception error] AttributeError: 'DataFrame' object has no attribute 'append'

problem origin 

When adding a new line to the last line of the csv file today, the following code was used:

dataframe = pd.read_csv("data/mol_properties.csv")
new_row = {'smiles': "smiles", 'logp': "logp_value", 'sa': "sa_value", 'qed': "qed_value", 'plogp': "plogp"}
dataframe = dataframe.append(new_row, ignore_index=True)

But there was an error "AttributeError: 'DataFrame' object has no attribute 'append'"

Solution:

pip install pandas==1.3.4

Solved AttributeError: 'DataFrame' object has no attribute 'append'_Yuan Yuan Yuan Yuan Man's Blog-CSDN Blog 

Guess you like

Origin blog.csdn.net/weixin_43135178/article/details/131695223