GFQL: The Dataframe-Native Graph Query Language

Contents

GFQL: The Dataframe-Native Graph Query Language#

GFQL is a graph query language that runs directly on Python dataframes. It needs no graph database. The same query runs on pandas, Polars, cuDF (GPU), or Polars-GPU, and on a remote Graphistry server. Install it with pip install graphistry.

GFQL accepts two syntaxes. The Python chain syntax composes n() and e() steps. The Cypher syntax, g.gfql("MATCH (a)-[e]->(b) ..."), covers a bounded subset of Cypher, the graph query language popularized by Neo4j. Both compile to vectorized dataframe operations, so one machine handles graphs of 100M+ edges in interactive time (see GFQL vs Apache Spark GraphFrames on One Node).

Where to start#