I want to filter two columns Administration and State column and print the values where state is California.
df.head()
R&D Spend Administration Marketing Spend State Profit
0 165349.20 136897.80 471784.10 New York 192261.83
1 162597.70 151377.59 443898.53 California 191792.06
2 153441.51 101145.55 407934.54 Florida 191050.39
I tried to filter the values but i get only the boolean values.How to print the values?
df.loc[:,['Administration','State']].isin(['California'])
Administration State
0 False False
1 False True
2 False False