Horje
replace all spacec column with underscore in pandas Code Example
replace all spacec column with underscore in pandas
import pandas as pd 

# remove spaces in columns name
df.columns = df.columns.str.replace(' ','_')




Python

Related
how to update a module in python Code Example how to update a module in python Code Example
pandas add dataframe to the bottom of another Code Example pandas add dataframe to the bottom of another Code Example
pandas remove char from column Code Example pandas remove char from column Code Example
pandas remove timezone info Code Example pandas remove timezone info Code Example
django get user model funciton Code Example django get user model funciton Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7