Question: Python data frame pandas removing 0 I have a data frame with a header location in the location i have multiple types and I need

Python data frame pandas removing 0

I have a data frame with a header location in the location i have multiple types and I need to remove the zero from the 5 so the became just 5 without 0.

id location
0 A
1 B
2 4
3 5
4 5
5 5.0
6 5.0
7 B
8 A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!