I have a code that used to work for a large dataset in which I read and filter call center records. Suddenly, the code quit working with my latest Anaconda upgrade.
To test the code, I have created a super simple 3x2 dataframe to troubleshoot why the isin
function isn't working anymore. I can't figure it out.
Here is what I tried:
This first step works well
import pandas as pd
test_df = pd.read_csv('testfile.csv')
The output for my new data frame is:
8003002419
8005555555
8003002419
Now I want all rows with a specific phone number to go into its own data frame.
mytfn = ['8003002419']
result_df = test_df[test_df['TFN'].isin(mytfn)]
result_df
The result comes up blank