This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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” data from all column as text but it converts this column automatically to number format. Do you have any idea how can I overwrite these autogenerate wrapper??
# Prolog - Auto Generated #
pandas.read_csv('input_df_79f27d2d-28f8-4512-9a2f-308cf041f073.csv')
what I tried till now:
Thanks and kind Regards
@hamed_digaleh , In Edit query mode , right click on table and open advance editor, You will see the column name with data types. You can change it(Data type) there.
Keep backup of file.
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)
@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.
@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.
@hamed_digaleh - So you have a source step where you import the data, why doesn't a subsequent step of transforming the column to text? Are you getting an error?
In Source step data are read as text and in the write format (e.g. in this case MONTH_YEARS column as "02.2020"), but the problem rise when it tries to run the python wrapper and it conver these text in auto generate part to number (e.g. MONTH_YEARS reads as 22.02 which is wrong).
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |