I have a large dataframe (df) and in the last column, all of the elements are showing up as
1055.0000.0
so the last 2 characters are always ".0". Whats the most efficient way to do this? the last columns name is always different so im not sure how to approach this. I have tried to loop over the pandas df but it takes too much memory and breaks the code. is there a way to do something like
df[ last column ] = df[ last column - last 2 characters]
or make a new df then append it in?