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
๐ŸŒ
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 - The simplest way to remove decimal points in pandas is by using the round() function. This function rounds a given number to a specified number of decimal places. To remove all decimal points, you can set the number of decimal places to 0.
Discussions

python - Deleting decimals from a pandas dataframe - Stack Overflow
I have numbers such as 24.00 2.00 3.00 I want to have 24 2 3 I have used .astype(int), round() but I keep getting the former. How do I get this to work? More on stackoverflow.com
๐ŸŒ stackoverflow.com
how to remove decimal points from values ?
https://www.google.com/search?q=python+remove+decimal More on reddit.com
๐ŸŒ r/learnpython
4
0
December 5, 2023
How to remove the decimal places while using st.table?
My dataframe looks like this while using st.table, the numbers are integers. How can I remove the decimal part? So 17.0000 becomes 17. More on discuss.streamlit.io
๐ŸŒ discuss.streamlit.io
1
0
April 11, 2022
pandas - Python - Remove decimal and zero from string - Stack Overflow
I'm reading several spreadsheets into a data frame and there is an ID field that is a string in some spreadsheets and a number in others. I've converted it into a string, which is the data type I n... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
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
๐ŸŒ
YouTube
youtube.com โ€บ hey delphi
PYTHON : How to remove decimal points in pandas - YouTube
PYTHON : How to remove decimal points in pandasTo Access My Live Chat Page, On Google, Search for "hows tech developer connect"As promised, I'm going to shar...
Published ย  April 13, 2023
Views ย  88
๐ŸŒ
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 - In this article, let's see how to remove numbers from string in Pandas. Currently, we will be using only the .csv file for demonstration purposes, but the process is the same for other types of files. The function read_csv() is used to read CSV files.
Find elsewhere
๐ŸŒ
CopyProgramming
copyprogramming.com โ€บ howto โ€บ python-remove-demical-on-a-certain-column-pandas
Removing decimal values from a specific column in pandas using Python - Python 3 x
June 3, 2023 - Remove Decimal Point in a Dataframe with both Numbers and, Use a function and apply to whole column: In [94]: df = pd.DataFrame({'Movies':['Save the last dance', '2012.0']}) df Out[94]: Movies 0 Save
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 67722165 โ€บ remove-decimal-in-pandas
python - Remove Decimal in pandas - Stack Overflow
You probably have a nan value in this column. You must remove them first, then convert to int: df["Time Period"].astype(int).
๐ŸŒ
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.
๐ŸŒ
GitHub
github.com โ€บ beepscore โ€บ pandas_decimal
GitHub - beepscore/pandas_decimal: Using Pandas with Python Decimal for accurate currency arithmetic ยท GitHub
For numbers with a decimal separator, by default Python uses float and Pandas uses numpy float64.
Author ย  beepscore
๐ŸŒ
CopyProgramming
copyprogramming.com โ€บ howto โ€บ python-how-to-remove-decimal-number-using-python
How to Remove Decimal Numbers in Python: Complete Guide 2026 - Remove decimal numbers in python complete guide
December 30, 2025 - # โŒ WRONG: Float loses precision before Decimal conversion result = Decimal(0.1) # Already corrupted # โœ“ CORRECT: String preserves exact value result = Decimal('0.1') For arrays or DataFrames, use specialized libraries rather than loops: import numpy as np import pandas as pd # NumPy array = np.array([1.234, 5.678, 9.012]) rounded = np.round(array, decimals=1) # Pandas df = pd.DataFrame({'price': [19.99, 25.50, 100.01]}) df['rounded'] = df['price'].round(2)
๐ŸŒ
Solix Technologies
solix.com โ€บ products โ€บ answers โ€บ how-to-remove-decimal-points-in-pandas-a-data-scientists-guide
How To Remove Decimal Points In Pandas: A Data Scientist's Guide | Solix Technologies, Inc.
June 29, 2025 - By casting the column to the int type, all decimal points will be truncated. This method is particularly effective for straightforward transformations without needing to manipulate the raw data further. If you have more complex needs or desire to round the numbers while removing decimal points, ...