hardStudy question · answer published in Python interview questions, so no pointspythonnumpystatistics
Different standard deviations for the same data
For x = [2, 4, 4, 4, 5, 5, 7, 9], np.std(x) gives 2.0 but pd.Series(x).std() gives about 2.14. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- What the central limit theorem saysData Scientist
- Changing an item in a tupleData Scientist
- Reading a missing dictionary key safelyData Scientist
- List comprehension with a conditionData Scientist
- is versus == for two listsData Scientist
- Slicing part of a stringData Scientist
- Floor division with a negative numberData Scientist
- Checking 0.1 + 0.2 == 0.3Data Scientist