I have a csv file bellow:
df.csv
Symbol Total Volume (on 01/17/2018)
A
B
C 1.900
D
E
F
G 1.051
I would like to find the Symbols if the Total Volume (on 01/17/2018) value is not null. In another words, I would like to retung "G", in this case.
I was tryng to do it with those lines of code:
df = pd.read_csv('./df.csv')
type_filter = df[df['Total'].str.match('', case=False)]
a = type_filter['Symbol']
print type_filter
Any ideas?
By the way, could you also give me an example if I would like to find the Symbols if the Total value is null?
df.Symbol[df.Total.str.strip().ne('')]And for the inverse, invert the condition with~.