Resolved: TypeError: 'tuple' object is not callable
in The Complete Data Visualization Course with Python, R, Tableau, and Excel / Pie Chart - Python - How to Create a Pie Chart
I am getting this error and can't figure what's the problem here?
2 answers ( 1 marked as helpful)
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.
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
ValueError: Using a string of single character colors as a color sequence is not supported. The colo