How can I open a .tsv file in Jupyter.
The data is stored under C:/User/anna/.
This is my code:
import pandas as pd
df=pd.read_csv('C:/User/anna/train')
But I get this error message:
FileNotFoundError: File b'C:/Users/anna/train.txt' does not exist
it's actually to do with pandas, by default the separator is comma, not tab. try the code below:
df=pd.read_csv('C:/User/anna/train', sep='\t')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With