Question:
we are trying to create new data frame using function and then append them in final data frame. i tried below code but not able to get appended data frame in final result. can anyone guide me here.Answer:
As of pandas v1.4.0,append
is deprecated in favor of concat
(source). Also, you must assign the return value to final_df
in order to see changes; append
and concat
do not update the data frames for you.If you have better answer, please add a comment about this, thank you!