You have a few options...

1) convert everything to integers.

df.astype(int)
          <=35  >35
Cut-off            
Calcium      0    1
Copper       1    0
Helium       0    8
Hydrogen     0    1

2) Use round:

>>> df.round()
          <=35  >35
Cut-off            
Calcium      0    1
Copper       1    0
Helium       0    8
Hydrogen     0    1

but not always great...

>>> (df - .2).round()
          <=35  >35
Cut-off            
Calcium     -0    1
Copper       1   -0
Helium      -0    8
Hydrogen    -0    1

3) Change your display precision option in Pandas.

pd.set_option('precision', 0)

>>> df
          <=35  >35
Cut-off            
Calcium      0    1
Copper       1    0
Helium       0    8
Hydrogen     0    1 
Answer from Alexander on Stack Overflow
🌐
Homedutech
homedutech.com › faq › python › how-to-remove-decimal-points-in-pandas.html
How to remove decimal points in pandas
import pandas as pd # Sample DataFrame ... Series" Description: This code snippet illustrates how to remove decimal places from a Pandas Series using the astype() function to convert the data type to integer....
🌐
CodeProject
codeproject.com › Questions › 5291723 › How-do-I-remove-decimals-from-a-pandas-data-frame
How do I remove decimals from a pandas data frame index
September 1, 2021 - Do not try and find the page. That’s impossible. Instead only try to realise the truth - For those who code; Updated: 1 Jul 2007
🌐
GitHub
github.com › beepscore › pandas_decimal
GitHub - beepscore/pandas_decimal: Using Pandas with Python Decimal for accurate currency arithmetic · GitHub
def int_by_removing_decimal(self, a_float): """ removes decimal separator. removing decimal from a_float with n decimal places multiplies by 10 ** n :a_float: a Python float e.g. 1.23 :return: an integer e.g.
Author   beepscore
🌐
Javatpoint
javatpoint.com › how-to-remove-decimal-in-python
How to Remove Decimal in Python - Javatpoint
How to Remove Decimal in Python with python, tutorial, tkinter, button, overview, entry, checkbutton, canvas, frame, environment set-up, first python program, operators, etc.
Find elsewhere
🌐
Java2Blog
java2blog.com › home › python › how to remove decimals in python
How to Remove Decimals in Python - Java2Blog
October 2, 2023 - In the above example, we convert ... that can calculate complex mathematical calculations. We can remove decimal places in Python using the truncate() function from the math library....
🌐
Saturn Cloud
saturncloud.io › blog › how-to-remove-decimal-points-in-pandas-a-guide-for-data-scientists
How to Remove Decimal Points in Pandas A Guide for Data Scientists | Saturn Cloud Blog
December 23, 2023 - This function can be a built-in function, a user-defined function, or a lambda function. To remove decimal points using the apply() function, you can create a lambda function that rounds each value to 0 decimal places.
🌐
YouTube
youtube.com › watch
How to Remove Decimal Places and Spaces from Data in Pandas DataFrame - YouTube
Learn how to effectively remove decimal places and unnecessary spaces from numeric data in a Pandas DataFrame. Follow our step-by-step guide to clean your da...
Published   October 2, 2025
Views   0
🌐
Beepscore
beepscore.com › website › 2018 › 10 › 12 › using-pandas-with-python-decimal.html
Using Pandas with Python Decimal for accurate currency arithmetic
def int_by_removing_decimal(self, a_float): """ removes decimal separator. removing decimal from a_float with n decimal places multiplies by 10 ** n :a_float: a Python float e.g. 1.23 :return: an integer e.g.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-remove-all-decimals-from-a-number-using-python
How to remove all decimals from a number using Python? - GeeksforGeeks
March 27, 2025 - Explanation: This code converts floating-point numbers to integers using the int() function, which removes the decimal part. It then prints the converted values and shows the data types of the original and converted numbers using type(). ... ...