Last answered:

03 May 2022

Posted on:

30 Apr 2022

0

Resolved: TypeError: 'tuple' object is not callable

I am getting this error and can't figure what's the problem here?
image.png

2 answers ( 1 marked as helpful)
Instructor
Posted on:

03 May 2022

0

Hi Mohamed,
thanks for reaching out! Your code seems perfectly in order from what I'm seeing, which means the error lies somewhere else. A possible reason for this type of error could be the reading of the csv, as sometimes in Python, the read function does not automatically split the columns.
You could try:

df_fuel_engine_type = pd.read_csv("pie_chart_data.csv" , sep = ",")

when reading the pie chart data and let me know how it goes. If it still doesn't work you can send me a snapshot of how your  df_fuel_engine_type data frame looks like.

Best,
365 Eli

Posted on:

03 May 2022

0

Hello again,

I don't know why but the code worked fine after restarting the kernel.
anyway, thanks for the help. I will try your solution if it occurred again.

Submit an answer