0

enter image description here


df['advertiser_id'] = df['advertiser_id'].astype('str')

why there is a ".0" after convert to string?

print(df['advertiser_id'].head())
OR
print(df['advertiser_id'][:-1].head())
# 
0     5677559.0
1     5834490.0
2     7218427.0
3    11193298.0
4    10901750.0

the questions is how to remove the ".0"?

Sean.H
  • 462
  • 5
  • 16

0 Answers0