Skip to content

train.info(null_counts=True) raises TypeError with recent pandas versions #1

Description

@larrymargerum01

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

  1. Open 14_working_with_text_data/05_sentiment_analysis_twitter.ipynb.
  2. Run the notebook with a recent version of pandas.
  3. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions