You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: DataFrame.append() method no longer exists in newer pandas versions
Description
When using TensorWatch with recent versions of pandas (2.0+), an AttributeError is raised because the DataFrame.append() method no longer exists. This occurs in the text_vis.py file, specifically in the _append method of what appears to be a visualization class.
Error Message
AttributeError: 'DataFrame' object has no attribute 'append'
Code Location
The error occurs in the following method:
def_append(self, stream_vis, vals):
# ... (rest of the method)self.df=self.df.append(self.SeriesClass(val_dict), sort=False, ignore_index=True)
# ...
Suggested Fix
Replace all instances of self.df.append(...) with pd.concat([self.df, pd.DataFrame([...])], ignore_index=True).
Issue: DataFrame.append() method no longer exists in newer pandas versions
Description
When using TensorWatch with recent versions of pandas (2.0+), an AttributeError is raised because the DataFrame.append() method no longer exists. This occurs in the
text_vis.py
file, specifically in the_append
method of what appears to be a visualization class.Error Message
Code Location
The error occurs in the following method:
Suggested Fix
Replace all instances of
self.df.append(...)
withpd.concat([self.df, pd.DataFrame([...])], ignore_index=True)
.For example:
Additional Context
append()
method for DataFrames was deprecated in pandas 1.4.0 and removed in pandas 2.0.0.Environment
Steps to Reproduce
Thank you for your attention to this issue!
The text was updated successfully, but these errors were encountered: