# 2D Algorithms

pybaselines extends a subset of the one dimensional (1D) baseline correction algorithms to work
with two dimensional (2D) data. Note that this is only intended for data in which there is some
global baseline; otherwise, it is more appropriate and usually significantly faster to simply
use the 1D algorithms on each individual row and/or column in the data, which can be done using
`Baseline2D.individual_axes()`

or using `Baseline`

with for-loops.

This section of the documentation is to help provide some context for how the algorithms were extended to work with 2D data. It will not be as comprehensive as the 1D Algorithms section, so to help understand any algorithm, it is suggested to start there. Refer to the API section of the documentation for the full parameter and reference listing for any algorithm.