Product Rationale
Why this migrator exists: every Pandas rewrite lies somewhere
Pattern rewrites cannot prove semantics; Fabric needs evidence, not luck.
The ambiguous 20%
| pandas idiom | PySpark gap | Action |
|---|---|---|
| .apply(axis=1) | Row-by-row semantics | Refactor to vectorised expression. |
| .iterrows() | Generator loop on driver | Rewrite before runtime. |
| Index semantics | No Spark index | Explicit columns + windows. |
| Local Python closures | Serialisation cavets | UDF review or native rewrite. |
Honest sizing
80% of code converts mechanically; 20% needs human triage. The tool identifies the 20%; it does not pretend to fix it.