Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Nicole Enos
3,142 PointsAppend no longer supported
Append is no longer supported as a method for dataframes
1 Answer

Lori Miller
4,218 PointsHi Nicole,
I was able to look into the official pandas documentation and I saw that the 'concat()' function is the replacement for append now.
Here is a snippet of the 'concat()' function from the documentation:
"The 'concat()' function concatenates an arbitrary amount of 'Series' or 'DataFrame' objects along an axis while performing optional set logic (union or intersection) of the indexes on the other axes."
"Like 'numpy.concatenate', 'concat()' takes a list or dict of homogeneously-typed objects and concatenates them."
Note: Since the 'record' object is a dict, you have to convert it into a DataFrame before you can concatenate.
I was able to get the same output as Craig by using the following code using Python in Jupyter Notebooks:
# Convert the record into a DataFrame
new_record = pd.DataFrame([record])
# Append the new_record DataFrame with transactions
pd.concat([transactions, new_record], ignore_index=True).tail()