Aug-17-2023, 09:09 AM
I have a data frame with three columns (Active, UserName, Role):
I'm trying to filter it with only Active values:
Quote:Active UserName Role
FALSE 945480 Invoice Viewer
FALSE 945480 Maintain Invoice Streams
FALSE 945480 Maintain Payment Instruments
FALSE ClientAppAB Superuser
FALSE ClientAppBC Superuser
FALSE ClientAppPC Superuser
TRUE m002mb8 Maintain Invoice Streams
TRUE m002mb8 Maintain Payment Instruments
FALSE M003808 Maintain Invoice Streams
FALSE M003808 Maintain Payment Instruments
TRUE M003818 Maintain Invoice Streams
TRUE M003818 Maintain Payment Instruments
FALSE M003832 Maintain Invoice Streams
FALSE M003832 Maintain Payment Instruments
FALSE M003833 Maintain Invoice Streams
FALSE M003833 Maintain Payment Instruments
I'm trying to filter it with only Active values:
mask = df['Active'] == 'False' df_new = pd.DataFrame(df[mask]) print(df_new)But I receive empty DataFrame
Output:Empty DataFrame
Columns: [Active, UserName, Role]
Index: []
Please help.