We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FutureWarning
inplace
1 parent e6dc2a6 commit f39777dCopy full SHA for f39777d
convert.py
@@ -108,8 +108,11 @@ def convert():
108
input["Name"] = input["Given Name"] + " " + input["Family Name"]
109
110
# - replace singular with plural in category
111
- input["Category"].replace(
112
- {"Vlče": "Vlčata", "Skaut": "Skauti", "Rover": "Roveři"}, inplace=True
+ # Avoid inplace on a Series (pandas will warn about chained assignment).
+ # Assign the replaced Series back to the DataFrame to ensure we operate
113
+ # on the original object (compatible with pandas 3.0 behavior).
114
+ input["Category"] = input["Category"].replace(
115
+ {"Vlče": "Vlčata", "Skaut": "Skauti", "Rover": "Roveři"}
116
)
117
118
# - and some need bigger changes (combining, renaming and adding values)
0 commit comments