Skip to content
API Reference
Dataset Of Walker

Dataset Of Walker

Dataframe

Pandas

import pygwalker as pyg
import pandas as pd
 
df = pd.read_csv("data.csv")
 
walker = pyg.walk(df)

Polars

import pygwalker as pyg
import polars as pl
 
df = pl.read_csv("data.csv")
 
walker = pyg.walk(df)

Modin

import pygwalker as pyg
import modin.pandas as mpd
 
df = mpd.read_csv("data.csv")
 
walker = pyg.walk(df)

Database

Connector Code

from pygwalker.data_parsers.database_parser import Connector
 
conn = Connector(
    "snowflake://username:password@host/database/schema",
    """
        SELECT
            *
        FROM
            XXX
    """
)

Connector Parameters

ParameterTypeDefaultDescription
urlstr-refer to sqlalchemy doc for url. example: mysql+pymysql://user:password@host:port/databas
view_sqlstr-view sql, example: SELECT * FROM table_name
engine_paramsOptional[Dict[str, Any]]Noneengine params, refer to sqlalchemy doc for params. example: {"pool_size": 10}

Snowfalke

from pygwalker.data_parsers.database_parser import Connector
import pygwalker as pyg
 
conn = Connector(
    "snowflake://username:password@host/database/schema",
    """
        SELECT
            *
        FROM
            XXX
    """
)
 
walker = pyg.walk(conn)

Postgres

from pygwalker.data_parsers.database_parser import Connector
import pygwalker as pyg
 
conn = Connector(
    "postgresql+psycopg2://username:password@host:port/database",
    """
        SELECT
            *
        FROM
            XXX
    """
)
 
walker = pyg.walk(conn)

Others Databases

In theory, it supports all databases supported by SQLAlchemy.

Please refer to the SQLAlchemy documents and install the corresponding driver for the database.