github
0 of 1 new or added line in 1 file covered. (0.0%)
462 existing lines in 18 files now uncovered.3402 of 4007 relevant lines covered (84.9%)
39.36 hits per line
UNCOV
1
|
import numpy as np |
× |
2 |
|
|
UNCOV
3
|
from .base import NumpyColumn |
× |
4 |
|
|
5 |
# normalize_null_value = False due to float('nan')
|
|
6 |
# With normalization pandas.isnull will threat float('nan') as NULL value.
|
|
7 |
|
|
8 |
|
|
UNCOV
9
|
class NumpyFloat32Column(NumpyColumn): |
× |
UNCOV
10
|
dtype = np.dtype(np.float32) |
× |
UNCOV
11
|
ch_type = 'Float32'
|
× |
UNCOV
12
|
normalize_null_value = False
|
× |
13 |
|
|
UNCOV
14
|
def _get_nulls_map(self, items): |
× |
UNCOV
15
|
return [x is None for x in items] |
× |
16 |
|
|
17 |
|
|
UNCOV
18
|
class NumpyFloat64Column(NumpyColumn): |
× |
UNCOV
19
|
dtype = np.dtype(np.float64) |
× |
UNCOV
20
|
ch_type = 'Float64'
|
× |
UNCOV
21
|
normalize_null_value = False
|
× |
22 |
|
|
UNCOV
23
|
def _get_nulls_map(self, items): |
× |
UNCOV
24
|
return [x is None for x in items] |
× |