The following PR fixes two different issues I've found when using it with my own set of data:
When creating a set of data, mib2tsd fails if the CSV is empty (while mib2high just works fine). This is due to the df.apply used for morton codes; but since there are no data anyway, an early return fixed it.
When using python2, strings are by default 8-bit strings and not unicode. Adding an encoding property fixes the issue.
The following PR fixes two different issues I've found when using it with my own set of data:
When creating a set of data,
mib2tsd
fails if the CSV is empty (whilemib2high
just works fine). This is due to thedf.apply
used for morton codes; but since there are no data anyway, an earlyreturn
fixed it.When using
python2
, strings are by default 8-bit strings and not unicode. Adding anencoding
property fixes the issue.