The notebook 14_working_with_text_data/05_sentiment_analysis_twitter.ipynb uses train.info(null_counts=True).
With recent versions of pandas, this raises a TypeError because the null_counts argument is no longer supported.
Steps to reproduce
- Open
14_working_with_text_data/05_sentiment_analysis_twitter.ipynb.
- Run the notebook with a recent version of pandas.
- Execute the cell containing
train.info(null_counts=True).
Expected behavior
The cell should display the DataFrame information without raising an error.
Actual behavior
A TypeError is raised because null_counts is not a valid argument for DataFrame.info() in recent pandas versions.
Suggested fix
Update the notebook to use the current pandas API for displaying null-value information, or document a compatible pandas version.
The notebook
14_working_with_text_data/05_sentiment_analysis_twitter.ipynbusestrain.info(null_counts=True).With recent versions of pandas, this raises a
TypeErrorbecause thenull_countsargument is no longer supported.Steps to reproduce
14_working_with_text_data/05_sentiment_analysis_twitter.ipynb.train.info(null_counts=True).Expected behavior
The cell should display the DataFrame information without raising an error.
Actual behavior
A
TypeErroris raised becausenull_countsis not a valid argument forDataFrame.info()in recent pandas versions.Suggested fix
Update the notebook to use the current pandas API for displaying null-value information, or document a compatible pandas version.