AI / ML · DATA SCIENCE · SQL → PANDAS / PYSPARK

MorphSQL

Turn warehouse SQL into notebook-ready pandas or PySpark — paste or upload a file, convert, then download .py / .sql to your machine.

  1. Choose input dialect + output · 2. Paste SQL, load an example, or upload a .sql / .zip · 3. Convert → preview + download to your machine
Load a data-science / AI example

Fills SQL, converts, runs sample preview.

SQL is written for
Convert to
morphsql_pandas .py 822.0 B ⇣

Sample preview

Snowflake → Python (pandas)

92% confidence · output: Python (pandas)

Next steps

  1. Review the generated Python on the right.
  2. Check the sample preview (synthetic tables).
  3. Download the .py file or open the notebook starter cell.
  4. Point tables['…'] at your real DataFrames (read_parquet / read_sql).

What changed

  • Source dialect normalized: snowflake → portable SQL → pandas
  • WHERE → DataFrame.loc[mask]
  • SELECT columns → DataFrame projection

Sample preview · generated pandas on 1 synthetic table(s) → 5 rows × 3 cols. Replace inputs with your real data when you run the converted output.

Same style as transformers.pipeline — use in Colab, HF Jobs, or training scripts.

MorphSQL converted Snowflake → Python (pandas) (92% confidence).

Open Space · GitHub

MorphSQL v0.4.0 · Space · GitHub · Apache-2.0