-
Notifications
You must be signed in to change notification settings - Fork 10
Maximum
Maurice HT Ling edited this page Aug 13, 2021
·
2 revisions
Purpose: To get the maximum value of a data set.
Code:
>>> from scipy import stats
>>> X = [9.07, 8.97, 6.41, 3.03, 1.19, 2.67, 2.81, 9.2]
>>> result = stats.describe(X)
>>> print("Maximum = %.2f" % result.minmax[1])
Maximum = 9.20
or
>>> X = [9.07, 8.97, 6.41, 3.03, 1.19, 2.67, 2.81, 9.2]
>>> print("Maximum = %.2f" % max(X))
Maximum = 9.20
Copyright (c) 2008-2024, Maurice HT Ling
Refereed Publications and Technical Reports
Abstracts and Other Un-Refereed Works
Autobiographic Verses (Poems that I wrote) and My Sayings