Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add as_table() method with more flexibility #133

Open
taldcroft opened this issue Jul 17, 2019 · 0 comments
Open

Add as_table() method with more flexibility #133

taldcroft opened this issue Jul 17, 2019 · 0 comments

Comments

@taldcroft
Copy link
Member

taldcroft commented Jul 17, 2019

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.

drop_names = [name for name in dat.dtype.names if dat[name].dtype.kind == 'O']

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant