Closed rasbt closed 2 months ago
Pandas deprecated the .append method, and there was a fix for that in the chapter 8 notebook:
.append
if version.parse(pd.__version__) >= version.parse("1.3.2"): x = pd.DataFrame([[txt, labels[l]]], columns=['review', 'sentiment']) df = pd.concat([df, x], ignore_index=False) else: df = df.append([[txt, labels[l]]], ignore_index=True)
However, the fix was missing in the accompanying Python script.
Fixes #182
Pandas deprecated the
.append
method, and there was a fix for that in the chapter 8 notebook:However, the fix was missing in the accompanying Python script.
Fixes #182