My Measurement includes many fields and some of them are bool fields. Not every row has a value in every field. I expect that when reading and converting into a dataframe object, the missing entries of the bool columns are occupied as NaN
Actual behavior
However, the missing entries are set as None, which means that my column is no longer of the data type bool, but of the data type string, which leads to errors during further processing.
Specifications
Code sample to reproduce problem
Expected behavior
My Measurement includes many fields and some of them are bool fields. Not every row has a value in every field. I expect that when reading and converting into a dataframe object, the missing entries of the bool columns are occupied as NaN
Actual behavior
However, the missing entries are set as None, which means that my column is no longer of the data type bool, but of the data type string, which leads to errors during further processing.
See here:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
_time | Temp | Error | Control -- | -- | -- | -- 2022-05-13 09:25:21.243512+00:00 | 80.3 | None | None 2022-05-13 09:25:21.296167+00:00 | NaN | False | None 2022-05-13 09:25:21.306052+00:00 26 | NaN | None | True