Skip to content

Pandas 2.0 Migration #1095

Closed
Closed
@loicdiridollou

Description

@loicdiridollou

While working on the following, I noticed that you could not pass a list of str to to_timedelta although this is used in the examples in the docs (https://pandas.pydata.org/docs/reference/api/pandas.DatetimeIndex.as_unit.html#pandas.DatetimeIndex.as_unit)

Also noticed these ones from the tracker have no pending actions and could be marked as done:

  • Removed arguments verbose and encoding from DataFrame.to_excel() and Series.to_excel()
  • Remove argument inplace from MultiIndex.set_levels() and MultiIndex.set_codes()
  • Removed deprecated Index.is_monotonic(), and Series.is_monotonic()
  • Removed deprecated null_counts argument in DataFrame.info()
  • Removed deprecated RangeIndex._start(), RangeIndex._stop(), RangeIndex._step()
  • Removed deprecated Series.append(), DataFrame.append()
  • Removed deprecated DataFrame._AXIS_NUMBERS(), DataFrame._AXIS_NAMES(), Series._AXIS_NUMBERS(), Series._AXIS_NAMES()
  • Default value of dtype in get_dummies() is changed to bool from uint8
  • DataFrame.plot.hist() now recognizes xlabel and ylabel arguments
  • to_datetime() now accepts "ISO8601" as an argument to format, which will match any ISO8601 string (but possibly not identically-formatted)
  • to_datetime() now accepts "mixed" as an argument to format, which will infer the format for each element individually
  • The levels of the index of the Series returned from Series.sparse.from_coo now always have dtype int32. Previously they had dtype int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions