データフレームの全体の中の文字列の文字列を置換する
import pandas as pd def replace_all(df): for c in df.columns: if type(df[c][0]) is str: df[c] = df[c].str.replace('.', '').str.replace(',', '.').astype('float') return df replace_all(df)
Generation
データフレームの全体の中の文字列の文字列を置換する
import pandas as pd def replace_all(df): for c in df.columns: if type(df[c][0]) is str: df[c] = df[c].str.replace('.', '').str.replace(',', '.').astype('float') return df replace_all(df)
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