Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi Experts,
Is there an option that I do all the data cleaning in Power query and then import that table into R or Python ?? Please let me know
Regards
Afzal khan
I checked - everything works.
For example, you can input file from Python, apply Power query and then pass it back to Python.
I'm not sure about any usefulness of such workflow, but it works.
let
Source = Python.Execute("import pandas as pd#(lf)df1 = pd.read_parquet(r'C:\Users\MyPC\Dropbox\Documents\DataScience\Pandas\pandas\chicago.parquet')"),
df2 = Source{[Name="df1"]}[Value],
#"Changed Type" = Table.TransformColumnTypes(df2,{{"Employee Annual Salary", type text}}),
#"Replaced Value" = Table.ReplaceValue(#"Changed Type","$","",Replacer.ReplaceText,{"Employee Annual Salary"}),
#"Filtered Rows" = Table.SelectRows(#"Replaced Value", each [Employee Annual Salary] <> null and [Employee Annual Salary] <> ""),
#"Run Python script" = Python.Execute("# 'dataset' holds the input data for this script#(lf)dataset.to_parquet(r'C:\Users\MyPC\Dropbox\Documents\DataScience\Pandas\pandas\pbd.parquet')#(lf)",[dataset=#"Filtered Rows"])
in
#"Run Python script"
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 39 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 34 | |
| 32 | |
| 29 |