In pandas, you can use the following command:
DallasData[DallasData['active_status']==1].head(5);
The following is the output to the preceding commands:
DallasData after filtering only active customers
Suppose we want to find out the rows where the customers are active (active_status ==1) and have completed fewer than nine services (services_completed<9). This can be done in the two tools in the following manner.