I have column quantity in dataframe. I want to add a new column to this dataframe with each record having
min("Quantity"). I am trying to use
pyspark. something like below
grouping expressions sequence is empty, and `InvoiceNo` is not an aggregate function. Wrap (min(`Quantity`) AS `min_quant`) in windowing function(s) or wrap
But, in place of 2 here, I want
min(Quantity). Am I missing something?