customerprofile 36-45 PMET Self-Employed Lower income ['Ulip'] Ulip 3-12 months Annual…
- User
customer_profile 36-45 PMET Self-Employed Lower income ['Ulip'] Ulip 3-12 months Annual Direct Debit 5L-10L 46-55 Married PMET Self-Employed Lower income ['Non Par'] Non Par 1-3 years Annual Direct Debit 0-5L 26-35 Young aspirer Self-Employed Lower-middle income ['Ulip'] Ulip 1-3 years Annual Direct Debit 10L-50L 56+ Married Golden age Unemployed Lower-middle income ['Ulip'] Ulip 1-3 years Annual Direct Billing (Cash) 0-5L 46-55 Married PMET Salaried Lower-middle income Overweight ['Non Par'] Non Par 1-3 years Annual Direct Debit 0-5L 36-45 Married PMET Unemployed Lower income ['Protection'] Protection 1-3 years Quarterly Direct Debit 10L-50L 26-35 Young aspirer Salaried Lower-middle income ['Par'] Par 1-3 years Annual Direct Billing (Cash) 10L-50L in tthis column i have [''] for any word can you remove them and if nay of these words repeat in that column make sure that you have only one and remove the duplcaite one description_of_product_name Ulip Non Par Protection Par in python
- Assistant
- User
in above code that you shared only if we have multiple of below balues we need to repalce and keep only one customer_profile Ulip Non Par Protection Par
- Assistant
- User
KYC_DECLARATION this column sis there in data frame df can you rename it to just jyc
- Assistant
You can rename a specific column in a Pandas DataFrame using the
rename()method. If you want to rename the columnKYC_DECLARATIONtojyc, you can do it like this:python