I have a DataFrame with these columns:
ID int64
Key int64
Reference object
sKey float64
sName float64
fKey int64
cName object
ints int32
I want to create a new DataFrame containing columns commonName and ints where ints is greater than 10, I am doing:
df_greater_10 = df[['commonName', df[df.ints >= 1997]]]
I see the problem lies with the expression df[df.ints >= 1997] as I'm returning a DataFrame - how can I just get the column of ints with values greater than 10?