import pandas as pd
data = pd.DataFrame({
'Phone': ['ip5', 'ip6', 'ip8', 'sms', 'xi'],
'Phone Price': [204, 304, 404, 405, 305]
})
q = data['Phone Price'].quantile(0.99)
import pandas as pd
- load lib:Pandas moduledata
- will contain loaded DataFrame.quantile(
- calculates specified quantile'Phone Price'
- column to calculate quantile for0.99
- will calculate 0.99 quantile
group: quantile
import pandas as pd
phoneDataSet = {
'Phone': ['ip5', 'ip6', 'ip8', 'sms', 'xi'],
'Phone Price': [204, 304, 404, 405, 305]
}
data = pd.DataFrame(phoneDataSet)
q = data['Phone Price'].quantile(0.99)
print(q)
404.96