how to write a function that accepts a 1D array as a parameter in Python - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: how to write a function that accepts a 1D array as a parameter in Python (/thread-37628.html) |
how to write a function that accepts a 1D array as a parameter in Python - SuperNinja3I3 - Jul-02-2022 5. Given a 1 D Numpy Array. Write a function that accepts this array as parameters. The method should return a dictionary with 'mean' and 'std_dev' as key and array's mean and array's standard deviation as values: [1, 1, 1] solution(arr) -> should return : {'mean': 1.0, 'std_dev': 0.0} RE: how to write a function that accepts a 1D array as a parameter in Python - Larz60+ - Jul-02-2022 please read: Homework and No Effort Questions |