In [1]:
import pandas as pd
In [2]:
df = pd.DataFrame.from_csv('./data/sample_data.csv', index_col=False)
In [3]:
df
Out[3]:
In [4]:
df_2 = pd.DataFrame.from_csv('./data/sample_data_2.csv', index_col=False, header=None)
In [5]:
df_2
Out[5]:
In [6]:
df_2.columns = ['col_1', 'col_2', 'taget']
In [7]:
df_2
Out[7]:
In [ ]: