Give a large dataset, find the median.



Give a large dataset, find the median...

Answer / Pratigya Chaudhary

To find the median of a large dataset, you can use Python's built-in sorted() function or the stats.median() function from the scipy.stats module. Here's an example:nn```pythonnimport numpy as npnfrom scipy.stats import mediann# Sample datandata = np.array([...])n# Find the mediannmedian_value = median(data)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Science Interview Questions

Can you define a/b testing?

1 Answers  


What is column storage?

1 Answers  


What is meant by supervised and unsupervised learning in data?

1 Answers  


What is logistic and linear regression? How do you treat multicollinearity and heteroscedasticity in regression? Name some packages in r and python for building regression models.

1 Answers  


How many big Macs does McDonald sell every year in US?

1 Answers   Facebook,


What is the svm algorithm?

1 Answers  


Discuss decision tree algorithm?

1 Answers  


You are at a Casino. You have two dices to play with. You win $10 every time you roll a 5. If you play till you win and then stop, what is the expected pay-out?

1 Answers   Facebook,


What do you mean by word data science?

1 Answers  


Why is data cleaning essential in data science?

1 Answers  


How would you say data science is similar or different to business analytics and business intelligence?

1 Answers  


How does data cleaning plays a vital role in the analysis?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)