I have dataframe df which contains a column check_r2 which contains values either True or False.
I want to create another dataframe df1 which will contain rows for only those which have check_r2 as True
I tried with this code but getting empty dataframe as output, I am creating this dataframe from excel, where column values are in capital i.e TRUE or FALSE but when I Print them using print(df) I get True or False as output, I tried both ways while comparing but the output was same
code
df = read_data()
df1 = pd.DataFrame()
df1 = df[df['check_r2'] =="True"]
also tried
df1 = df1.append(df[df['check_r2'] =="True"])
