The current .table property on event models has the behavior of silently dropping columns that have missing values. This happens with the NULL values in the database get turned into None, which makes the column get initialized as Object dtype, and subsequently dropped. This happens with manvrs for instance.
A new method as_table() could address this by controlling whether the output is a masked table, or warnings are issued, or turning date strings into cxotime mixin columns, etc.
The current
.table
property on event models has the behavior of silently dropping columns that have missing values. This happens with the NULL values in the database get turned intoNone
, which makes the column get initialized asObject
dtype, and subsequently dropped. This happens withmanvrs
for instance.https://github.com/sot/kadi/blob/cccaa7795b6dd9c9f10a8adcdea67d6e52b31412/kadi/events/models.py#L298
A new method
as_table()
could address this by controlling whether the output is a masked table, or warnings are issued, or turning date strings intocxotime
mixin columns, etc.