@staticmethod<EOL><INDENT>def df2list(df):<DEDENT>
for column in df:<EOL><INDENT>df[column] = df[column].astype(object).where(df[column].notnull(), None)<EOL><DEDENT>return df.to_dict(orient='<STR_LIT>')<EOL>
Converts pandas.DataFrame values into list
:param df: pandas.DataFrame
:return: list