TSV is a plain-text tabular format that separates values with tab characters rather than commas and places records on separate lines. section 12.5.1
Reading a TSV event dataset
A pandas workflow reads the compressed file `lsapp.tsv.gz` with `sep="\t"`, assigns column names, parses timestamps, skips the header, and previews more than three million app-event rows. section 12.5.1
import pandas as pd
import matplotlib.pyplot as plt
app_data = pd.read_csv(
"./data/lsapp.tsv.gz",
sep="\t", #1
names=["user_id", "session_id", "timestamp",
"app_name", "event_type"], #2
parse_dates=["timestamp"], #3
skiprows=1 #4
)
print(app_data.shape)
app_data.head()
Shows executable pandas configuration for importing a tab-separated dataset. section 12.5.1
