I am trying to open a text file using pandas in Jupyter Notebook. Then iterating through the file, and search and find specific piece of data. Then save the rows of the searched data to a new file.
What I need to do:
- Open text file using pandas in Jupyter Notebook
- Iterate through the file, searching for "Richmond Group" data
- Save Only the new search information to a new file
I can not get passed the error to finish the code. I am struggling to open the file and finding the search data. Please help me.
MY CODE:
import pandas as df
df=pd.read_csv('F:/Wells FargoZinitra.txt', 'r')
print(df)
Error: