Skip to content

DISC: pd.DataFrame methods we specifically _don't_ want included #83

Closed
@jbrockmendel

Description

@jbrockmendel

#3 has a discussion of which pd.DataFrame methods should be included in the standard based on a) measures of popularity among users and b) which are common across dataframe libraries. I'd like to try coming at it from the other direction: what existing pd.DataFrame methods can we exclude from consideration?

Throwing out some ideas here, none of these are strong opinions on my part:

  • metadata-centric attributes/methods
    • attrs
    • flags
    • set_flags
  • deprecated pd.DataFrame methods
    • tshift
    • slice_shift
    • lookup
    • iteritems
    • append
  • non-dunder arithmetic methods
    • add
    • radd
    • mul
    • rmul
    • [26 of these total]
    • eq
    • ne
  • Methods that don't make sense if there isn't a row-index
    • set_index
    • reset_index
    • sort_index
    • stack
    • unstack
    • swapaxes
    • asof
    • between_time
    • at_time
    • last_valid_index
    • first_valid_index
  • Methods that don't make sense if there isn't a MultiIndex
    • droplevel
    • reorder_levels
    • swaplevel
  • Dtype specific methods
    • explode (object)
    • infer_objects
    • sparse
  • Other
    • to_records/from_records
    • to_dict/from_dict
    • potentially many other to_foo/pd.read_foo methods/functions
    • style
    • to_period/to_timestamp/tz_convert/tz_localize/asfreq

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions