I am trying to copy a csv file to posgresql. I am using the following function :
def copy_from_stringio(conn, df, table, columns=column