K-medians clustering is a partitioning technique used in cluster analysis. It groups data into k clusters by minimizing the sum of distances—typically using the Manhattan (L1) distance—between data points and the median of their assigned clusters. This method is especially robust to outliers and is well-suited for discrete or categorical data. It is a generalization of the geometric median or 1-median algorithm, defined for a single cluster. k-medians is a variation of k-means clustering where instead of calculating the mean for each cluster to determine its centroid, one instead calculates the median. This has the effect of minimizing error over all clusters with respect to the 1-norm distance metric, as opposed to the squared 2-norm distance metric.