IndentationError
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Bar Chart - Python - How to Create a Bar Chart
height = df_used_cars["Cars Listings"]
^
IndentationError: unexpected indent
how to resolve this error? and why do this type of error occur
1 answers ( 0 marked as helpful)
Hi Vikash,
thanks for reaching out! The reason this error occurs is likely because you have either a space or a tab empty before the line of code. A tab means something very specific in Python and that's why it's throwing the error. If your remove the spaces before your code line, you should be alright.
Hope this helps!
Best,
365 Eli