Given a 2D numpy array matrix (rows = observations, columns = features), compute the z-score-standardized version using broadcasting (no explicit loops).
For each column j, subtract its mean and divide by its standard deviation. Return the result as result, rounded to 4 decimal places.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.