read csv to dataframe with header code example
Example 1: pandas to csv without header
file = pd.read_csv(file_name, header=None)
Example 2: pandas read csv without header
df = pd.read_csv(train_file_path,sep="\t", header=None)
Example 3: read_csv separator
import pandas as pd
df = pd.read_csv('data.csv',sep=';')
# also working
df = pd.read_csv('data.csv',delimiter=';')
Example 4: readv csv pandas
>>> pd.read_csv('data.csv')