I have a spreadsheet of international phone numbers. When I open the file in Python or Excel, it zero's the numbers meaning: "119780000000000" instead of the real number.
The only thing that fixes it is going into Excel, formatting the column "Custom" and selecting "0".
I've tried reading the file into Python as a string:
myfile = "File_Output"
df = pd.read_csv(myfile+'.csv', dtype={'id':int, 'Code':str, 'Person':str, 'Phone Number':str})
This is an example set of rows from the output:
id | Code | Person | Phone Number |
1 | 100 | Guy | 119780000000000 |
2 | 200 | Girl | 115780000000000 |
3 | 100 | Guy | 113740000000000 |
The zeroes should not be there, it should be a full number. Why is this happening and is there any way to fix this programmatically?
The desired output is the real number:
id | Code | Person | Phone Number |
1 | 100 | Guy | 119781212412414 |
2 | 200 | Girl | 115784564564621 |
3 | 100 | Guy | 113747645754745 |