Registry Synced

Big Data Tools

45 words
1 min read

Big Data Tools

python
import dask.dataframe as dd
# Dask: parallel computing
df = dd.read_csv('large_file_*.csv')
result = df.groupby('category').value.mean().compute()
print(result)
# PySpark basics
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("example").getOrCreate()
df = spark.read.csv("data.csv", header=True, inferSchema=True)
df.show()
df.groupBy("category").agg({"value": "mean"}).show()
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.