我在数据框的一列中列出了用不同方式书写的俱乐部名称。如何将值转换为相似的名称,并为其创建一个值?
Tropad'elitePt
Tropadelitept
Tropadelite
TropaD'elitePT
Tropadelite.pt
Tropad'elitePt
Tropa D'ElitePT
Tropadeelitept
Tropad’elitePt
In:
df['What is the name of your club?'].value_counts()
Out:
Tropad'elitePt 3
Tropadelitept 2
AMG Drivers Club 1
Tropadelite 1
GT Circle 1
Marannelo Legacy 1
TropaD'elitePT 1
Dream Route 1
Cars and Coffee Peru 1
RevWorks 1
Tropadelite.pt 1
Cruisefire 1
Cars & Coffee Geneva 1
Pure Drivers Club 1
Last Lion Lifestyle South Africa 1
Cars and coffee chile 1
Road kings gdl 1
Tropa D'ElitePT 1
Drivers & Business Club Munich GmbH 1
Epicurean-Team 1
Atlantic Road Trip - ART 1
nan 1
Cars Club 1
Cars&Coffee Deluxe 1
Merenderos on the road / Supercarsafari 1
Swiss Clasdic & Supercar 1
PureDrive Automotive 1
Drive Hype Club 1
Tropadeelitept 1
BMWFanatics 1
Torque Rally 1
Tropad’elitePt 1
Atlantic Road Trip 1
Automobili Ardent 1
Crypto Rally 1
Stradale Supercars 1
Cars&CoffeeTT 1
Kaffee & Kurven 1
Luxury Rally Club 1
Cars & Coffee Hungary 1
BMW M Crew 1
Cars and coffee philippines 1
Tropad'elitePt 1
Name: What is the name of your club?, dtype: int64