Closed sklages closed 3 years ago
We store those as char
internally. I think we would need to convert it to a str for it to print properly in numpy.
78
= N
No, not an index read
89
= Y
Yes, an index read
With pandas this is easy to fix
import pandas as pd
ar = summary(rm, 'Read')
df = pd.DataFrame(ar)
df['IsIndex'] = df['IsIndex].map(chr)
You can also compare in numpy using
ord('Y') and ord('N')
Ah, okay. Got it. Thanks.
Just a question:
summary(run_metrics, 'Lane'/'Read')
returns78
(read) and89
(index read) forIsIndex
.Is that correct? And if so, what do these numbers mean? I was expecting a bool or 0/1 or so .. (the struct format here is 'u1' but should read '<u1'?)