You can use the .round
function.
Here is an example program:
# Import pandas
import pandas as pd
# Example data from question
alpha = [4.615556, 3.612727, 2.608000, 2.512500]
beta = [4.637778, 3.616364, 2.661333, 2.550000]
gamma = [4.415556, 3.556364, 2.680000, 2.566250]
theta = [4.5, 5.5, 7.5, 8.0]
# Build dataframe
df = pd.DataFrame({'alpha':alpha, 'beta':beta, 'gamma':gamma, 'theta':theta})
# Print it out
print(df)
# Use round function
df[['beta', 'gamma']] = df[['beta', 'gamma']].round(2)
# Show results
print(df)
Yields:
alpha beta gamma theta
0 4.615556 4.637778 4.415556 4.5
1 3.612727 3.616364 3.556364 5.5
2 2.608000 2.661333 2.680000 7.5
3 2.512500 2.550000 2.566250 8.0
alpha beta gamma theta
0 4.615556 4.64 4.42 4.5
1 3.612727 3.62 3.56 5.5
2 2.608000 2.66 2.68 7.5
3 2.512500 2.55 2.57 8.0