Forum Discussion
hamed_digaleh
5 years agoNew Member
overwriting data type in python wrapper for visualization
Hi everyone, I’ve problem in reading .csv in wrapper header file and it detect data type wrong. I originally imported moth_year column as text in data transform and here I do want to have “dataset” ...
hamed_digaleh
5 years agoNew Member
I already changed data type power query editor, and the type of column in the model is text. but by running python visualize it redetect data type and it cause missdetection (in this case detect text column as number)
Greg_Deckler
5 years agoCommunity Champion
hamed_digaleh - Ah, I understand now. So, no. I have run into this with R visuals because it wipes out the duplicates, which is problematic if you are trying to generate a word cloud via R code! 😕
You will need to convert it back to a date within the Python code I imagine.
- hamed_digaleh5 years agoNew Member
Greg_Deckler yes, but it is easier to fix the problem in read_csv part if it could be overwritten to add data type as pre setting as str.