Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read tsv with python

# Simple Way to Read TSV Files in Python using pandas
# importing pandas library
import pandas as pd
 
# Passing the TSV file to
# read_csv() function
# with tab separator
# This function will
# read data from file
interviews_df = pd.read_csv('GeekforGeeks.tsv', sep='	')
 
# printing data
print(interviews_df)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #read #tsv #python
ADD COMMENT
Topic
Name
5+4 =