Python Forum
TypeError: coerce_kw_type() got an unexpected keyword argument 'dest'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: coerce_kw_type() got an unexpected keyword argument 'dest'
#1
Hi everyone
I am new here and I am seeking for some help on python
I using Jupyter to practice
and I just got the following error while executing my code
TypeError: coerce_kw_type() got an unexpected keyword argument 'dest'
have look up this error on the net but can't get anything.

Here is my :

import sqlite3
import pandas as pd
from sqlalchemy import create_engine

file = 'un.xlsx'
output = 'output.xlsx'

engine = create_engine('sqlite://', echo=False)
df = pd.read_excel(file, sheet_name='Goma-Bukavu UN Agencies-NGO')
df.to_sql('contacts', engine, if_exists='replace', index=False)

results = engine.execute('select * from contacts')

final=pd.DataFrame(results, columns=df.columns)
final.to_excel(output, index=False)
final
Reply
#2
Are you sure you are sharing the correct piece of code? Where do you call coerce_kw_type() anyway, or am I missing something? And please share the traceback, and as allready said, in the proper way.
- Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. Albert Einstein
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django "Unexpected Keyword Argument 'min_value'" AstralWeeks 0 79 Yesterday, 04:56 AM
Last Post: AstralWeeks
  Find a specific keyword after another keyword and change the output sgtmcc 5 746 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  "unexpected keyword arg" when initializing my subclasses Phaze90 3 2,966 Nov-25-2022, 07:39 PM
Last Post: Gribouillis
  i want to use type= as a function/method keyword argument Skaperen 9 1,771 Nov-06-2022, 04:28 AM
Last Post: Skaperen
  TypeError: float() argument must be a string or a number, not 'list' Anldra12 2 4,756 Jul-01-2022, 01:23 PM
Last Post: deanhystad
  TypeError: missing a required argument: 'y' gible 0 2,843 Dec-15-2021, 02:21 AM
Last Post: gible
  TypeError: run_oracle_job() missing 1 required positional argument: 'connection_strin python_student 1 1,937 Aug-06-2021, 08:05 PM
Last Post: SheeppOSU
  TypeError: __init__() got an unexpected keyword argument 'value' Anldra12 7 22,433 May-11-2021, 06:35 PM
Last Post: deanhystad
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'Non Anldra12 2 5,103 May-02-2021, 03:45 PM
Last Post: Anldra12
  TypeError: sum() missing 1 required positional argument: 'num2' Insen 3 5,384 Jan-06-2021, 04:25 PM
Last Post: Insen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020