I have a pandas dataframe which looks like this:
I now want to get the column Predictions to an int value in order to plot the data. How could I do this?
It just a list comprehension from pandas columns
you can use
df['Predictions'].str[0].astype(int)
to extract decimal values
df['Predictions'].str[0]-df['Predictions'].str[0].astype(int)
df['Predictions'].str[0]-df['Predictions'].str[0].astype(int)