Check if dataframe is empty (no rows or no columns)
@param[in] df The data frame @return True if empty, false otherwise
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(data_frame), | intent(in) | :: | df |
pure function df_empty(df) result(is_empty) type(data_frame), intent(in) :: df logical :: is_empty is_empty = (df % nrows() == 0 .or. df % ncols() == 0) end function df_empty