A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/55147 below:

Series[categorical].replace behavior · Issue #55147 · pandas-dev/pandas · GitHub

Discussed briefly at the sprint and achieved consensus:

NDFrame.replace behaves differently with Categorical dtypes than it does with everything else (the special casing occurs in Block.replace and Block.replace_list), changing the dtype in addition to the values. We should deprecate this behavior to make it consistent with other dtypes and tell users to go through e.g. ser.cat.rename_categories instead (not quite as easy as that since rename_categories is only equivalent in some of the affected cases)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4