Skip to content

Rename _GMT_DATASET.to_dataframe to .to_pandas and _GMT_GRID.to_dataarray/_GMT_IMAGE.to_dataarray to .to_xarray #3651

@seisman

Description

@seisman

Here I propose renaming the following methods to align with conventions adopted by xarray/pandas/pyarrow:

  • Rename _GMT_DATASET.to_dataframe to .to_pandas.
  • Rename _GMT_GRID.to_dataarray and _GMT_IMAGE.to_dataarray to .to_xarray

Reference:

Since _GMT_DATASET/_GMT_GRID/_GMT_IMAGE are internal data structures, we can rename these functions without deprecation warnings. Of course, we can also go with the deprecation cycle if you think it's necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceBoring but important stuff for the core devs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions