issue_comments: 633296515
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/2780#issuecomment-633296515 | https://api.github.com/repos/pydata/xarray/issues/2780 | 633296515 | MDEyOklzc3VlQ29tbWVudDYzMzI5NjUxNQ== | 22566757 | 2020-05-24T20:45:43Z | 2020-05-24T20:45:43Z | CONTRIBUTOR | For the example given, this would mean finding For the character/string variables, the smallest representation varies a bit more: a fixed-width encoding ( Doing this correctly for floating-point types would be difficult, but I think that's outside the scope of this issue. Hopefully this gives you something to work with. ```python import numpy as np def dtype_for_int_array(arry: "array of integers") -> np.dtype: """Find the smallest integer dtype that will encode arry.
``` Looking at
It looks like pandas always uses object dtype for string arrays, so the numbers in that column likely reflect the size of an array of pointers. XArray lets you use a dtype of "S1" or "U1", but I haven't found the equivalent of the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
412180435 |