importing CSV data into postgreSQL using Python
I believe user
is not allowed as column name. See https://www.postgresql.org/docs/current/static/sql-keywords-appendix.html#KEYWORDS-TABLE
Try change User to something else and see if the issue is fixed. If not, then try to run the example given by PostgreSQL Python guide: http://www.postgresqltutorial.com/postgresql-python/create-tables/