I have a few datasets that share the same columns so I concatenated them together to form one large dateframe. My idea is to filter a goals_per_90 column by > .5 so it will create a new dataframe showing those whole rows of all the players with a value greater than .5 in a new dataframe. Im thinking of something like this at the moment but getting stuck when
def gettopplayers(Dataframe):
if Dataframe.loc[Dataframe['goals_per_90_overall'] > .5]:
apply.
Im getting lost as to where to append this row to. Any help would be greatly appreciated. Thank you!
df.loc[condition]will do the job