Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Monday, 7 September 2026

Learning Spark from the Latest Docs

Spark is best learned from the various programming guides. 

Access to these can be found from links on its latest documentation page.

These include a Quick Start, an RDD guide, an overview of Datasets and DataFrames and at least two guides on Streaming (1) Structured Streaming, and (2) the legacy functionality of Spark Streaming. 

MLib is also worth understanding, as is GraphX for graph processing, including graph parallel processing.

In terms of interfacing with other languages, Spark and Python is encouraged, whereas Spark and R is deprecated (through PySpark and SparkR respectively).

You should also be familiar with Spark Declarative Pipelines (SDP).

There is an associated knowledge base around deployment - including making Spark play well with Hadoop, Kubernetes and Amazon Elastic Compute (EC2).

Friday, 28 November 2025

statsmodels in Python

statsmodels is a Python package that complements scipy for statistical computation. 

The stable version is found here.

statsmodels takes ideas from other libraries and ecosystems, specifically it uses R-style formulas, and pandas DataFrames.  

Chances are you are using the library with other libraries too, like numpy.

It can be installed via Conda or pip. Examples:

conda install -c conda-forge statsmodel
python -m pip install statsmodels

Among the tricks statsmodels can perform are: time series analysis, various flavours of regression (OLS, generalized and weighted least squares), as well as PCA.