BDI302cXuất hiện trong 1 đề thi
You are working with a dataset in a Pandas DataFrame and need to calculate the mean of a column named sales. Which of the following code snippets would correctly calculate the mean?
Các lựa chọn
Adf['sales'].mean()
Bmean(df['sales'])
Cdf mean('sales')
Dsales mean()