home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 76500617

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/343#issuecomment-76500617 https://api.github.com/repos/pydata/xarray/issues/343 76500617 MDEyOklzc3VlQ29tbWVudDc2NTAwNjE3 7462311 2015-02-28T01:02:27Z 2015-02-28T01:02:27Z NONE

Points taken. Thanks for responding so quickly. I didn't realize that Pandas does something similar. I understand that the default behavior of NumPy/Python is to pass by reference (assignment) but I didn't realize that this rule applies even when converting an object from one type to another. Now that I have checked, np.ma.masked_array also uses a reference to the input data by default (however, it also provides the option for creating a copy).

In the API reference for DataArray, it probably wouldn't hurt to say that the input data is not copied by default and that a reference is used instead. I guess making note of this would only benefit less experienced users like myself, but it would be appreciated.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  59308959
Powered by Datasette · Queries took 0.644ms · About: xarray-datasette