Forum Discussion

dbarrera's avatar
dbarrera
Frequent Visitor
7 years ago
Solved

Python script: Error tokenizing data

After combining several Excel documents using Power Query, I tried to transform the result using a Python script, but received the following error:  "pandas.errors.ParserError: Error tokenizing data...
  • SteveCampbell's avatar
    7 years ago

    Hard to say without more info on the error.

     

    I would try, Highlight all columns, go to Transform > Format > Clean. Then doTransform > Format > Trim.

    If this does not work still, try renaming each of the column headers, maybe just test with A / B / C etc to see if that works.

     

    If still erroring, it may be useful to see the M code, if you copy the code from Home > Advanced Editor.

     

     

     

    Love hearing about Power BI tips, jobs and news?
    I love to share about these - connect with me!

    Stay up to date on  
    Read my blogs on  

    Remember to spread knowledge in the community when you can!