def __init__(self, pd_df=None):
self.heap = []<EOL>keys = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>n = len(pd_df)<EOL>key_to_j = {}<EOL>for j, key in enumerate(pd_df.columns.values):<EOL><INDENT>key_to_j[key] = j<EOL><DEDENT>pd_df_values = pd_df.values<EOL>for i in range(n):<EOL><INDENT>vals = []<EOL>for key in keys:<EOL><INDENT>j = key_to_j[key]<EOL>vals.append(pd_df_values[i, j])<EOL><DEDENT>e = Event(*vals)<EOL>self.add_event(e)<EOL><DEDENT>
Parameters
----------
pd_df : Pandas.Dataframe
    Initial list of