⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for createDataFrame (0.000 sec.)
Spark API 9414
The DuckDB Spark API implements the PySpark API , allowing you to use the familiar Spark API to interact with DuckDB. All statements are translated to DuckDB's internal plans using our relational API and executed using DuckDB's query engine ... n as session from duckdb.experimental.spark.sql.functions import lit, col spark = session.builder.getOrCreate() df = spark.createDataFrame( [(34, "Joan"), (45, "Peter"), (23, "John"), (56, "Bob")], ["age", "name"], ) df = df.withColumn("location", lit("Seattle" ... 4, location='Seattle'), Row(age=45, location='Seattle'), Row(age=23, location='Seattle'), Row(age=56, location='Seattle')] createDataFrame also accepts a pandas DataFrame, which needs pandas to be installed. Contribution Guidelines The experimental Spark API ac ...
https://man.mtool.work/duckdb/2.0/clients/python/spark_api.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work