prefer notna to notnull


ID: python-pandas/notna-instead-of-notnull

Language: Python

Severity: Info

Category: Best Practices


The functions notna and notnull are similar. However, this is a best practice to use notna since other methods use the same naming patterns.

Non-Compliant Code Examples

notnulls = pd.notnull(val)

Compliant Code Examples

notnas = pd.notna(val) jetbrains

Seamless integrations. Try Datadog Code Analysis