In order to solve the show() error caused by empty data, it is used during filtering! x. Isnullat (1) determines whether it is empty. If it is empty, it will be discarded
//Filter .getDouble(1) 1 refers to the first column, starting from 0
DF.filter(x => !x.isNullAt(1) && x.getDouble(1) < 1995).show(10)
Read More:
- [Solved] VUE Use Filters Error: [Vue warn]: Error in render: “TypeError: Cannot read property ‘toFixed’ of undefined”
- ElementUI Error in callback for watcher “data”: “Error: [ElTable] prop row-key is required”
- How to Solve Starrocks Various Error
- [Solved] ERROR #42601 syntax error at or near “)“
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- Error generic_INTERNAL_Error (65536) processing [How to Solve]
- keil error #1-D: last line of file ends without a newline
- ValueError: Negative dimension size caused by subtracting 2 from 1 for…
- R: Data frame index error “unexpected token”
- Vue Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of
- [Solved] Git Push error: File: xxx 252.15 MB, exceeds 100.00 MB.
- How to Solve ES error: “illegal_argument_exception”
- How to Solve LeetCode Error: AddressSanitizer:DEADLYSIGNAL
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- Leetcode error: AddressSanitizer:DEADLYSIGNAL [How to Solve]
- Error in *** : subscript out of bounds [How to Solve]
- Error: Error building SqlSession [How to Solve]
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- How to Solev PyEddyTracker geostrophic current calculation Error
- Doris BrokerLoad Error: quality not good enough to cancel