Dear all,
I imported data from excel and the column HH_2010, HH_2011,............. HH_2021 are supposed to be in numeric number with 2 digits but once I imported they show as string (Type str17).
I tried destring but it said "contains non-numeric characters". Then, I used encode and it shows the blue color with 15 decimals.
Can you please help me with the way to convert from string to 2 digits numeric easily?
Thanks so much in advance.
I imported data from excel and the column HH_2010, HH_2011,............. HH_2021 are supposed to be in numeric number with 2 digits but once I imported they show as string (Type str17).
Country | HH_2010 | HH_2011 | HH_2012 | ...... | HH_2021 |
Albania | 78.10933694727119 | 78.29943473286669 | 80.02937366162661 | 80.02937366162661 | |
American Samoa | 53.50191201900771 | ||||
Algeria | 53.50191201900771 | ||||
Angola | 53.50191201900771 |
I tried destring but it said "contains non-numeric characters". Then, I used encode and it shows the blue color with 15 decimals.
Can you please help me with the way to convert from string to 2 digits numeric easily?
Thanks so much in advance.
Comment