Forum Discussion
Python script changes data in date column.
Hello!
After running a python script in power query, one of my columns containing date data is completely changed to some text. The column is not even part of the python script. All the dates are replaced with "Microsoft.OleDb.Date".
The source data is an Excel file located on SharePoint. Any idea as to what could cause it or how to revert the data back?
Best regards,
Denis
6 Replies
- lbendlinSuper User
The column is not even part of the python scriptThen how else does it participate in the output? Your python script is supposed to create a dataframe that is handed back to Power Query as a table.
- DnsLeuFrequent Visitor
Hey,
I have 17 columns. The script that I run only adds a new column at the end. The results in this column are based on the values in 3 of columns.
When I run the script, I get all the original dataframe back, with all 17 columns + 1 (the 1 computed by python). In these original 17 columns, only 1 of them (presented above) gets its values changed. The other 16 columns maintain their values.
Perhaps I did not do a good job clarifying in the first place.- lbendlinSuper User
Maybe you can show a sanitized version of the Power Query script.