Pandas: Data Manipulation - notnull() function
notnull() function
The notnull() function is used to detect non-missing values for an array-like object.
This function takes a scalar or array-like object and indicates whether values are valid .
Syntax:
pandas.notnull(obj)
Parameters:
Name | Description | Type | Required / Optional |
---|---|---|---|
obj | Object to check for not null or non-missing values. | array-like or object value | Required |
Returns: bool or array-like of bool.
For scalar input, returns a scalar boolean. For array input, returns an array of boolean indicating whether each corresponding element is valid.
Example:
Download the Pandas DataFrame Notebooks from here.
Previous: notna() function
Next: to_numeric() function
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework