generate functionWed, 07 Dec 2022
データフレーム全体を対象に、文字列を置換する
# 全てのカラムを置換する def replace_all(df, old, new): for col in df.columns: df[col] = df[col].str.replace(old, new) return df replace_all(df, "old", "new")
Python
Generate MoreGeneration
データフレーム全体を対象に、文字列を置換する
# 全てのカラムを置換する def replace_all(df, old, new): for col in df.columns: df[col] = df[col].str.replace(old, new) return df replace_all(df, "old", "new")
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description