tzhangwps / Recession-Predictor

Project description: https://medium.com/p/recession-prediction-using-machine-learning-de6eee16ca94?source=email-2adc3d3cd2ed--writer.postDistributed&sk=2f1dab9738769f9658634e61576a08bd
MIT License
30 stars 28 forks source link

Python 3.12 Error "'DataFrame' object has no attribute 'append'" #18

Closed fatalfeel closed 3 months ago

fatalfeel commented 3 months ago

/root/git_source/Recession-Predictor/models/deployment_svm.py

all_predicted_probs = all_predicted_probs.append(predicted_probs, ignore_index=True) #error in python 3.12

need change to

all_predicted_probs = pd.concat([all_predicted_probs, predicted_probs], ignore_index=True) all_testing_y = all_testing_y._append(self.testing_y)

tzhangwps commented 3 months ago

Thanks as always @fatalfeel ! I made the fix on my personal computer, but forgot to update the repo. Fixed here: https://github.com/tzhangwps/Recession-Predictor/pull/19