Introduction
In this tutorial, you will learn how to create NumPy arrays using numerical ranges. NumPy provides various functions to create arrays from specified numerical ranges, such as arange
, linspace
, and logspace
.
VM Tips
After the VM startup is done, click the top left corner to switch to the Notebook tab to access Jupyter Notebook for practice.
Sometimes, you may need to wait a few seconds for Jupyter Notebook to finish loading. The validation of operations cannot be automated because of limitations in Jupyter Notebook.
If you face issues during learning, feel free to ask Labby. Provide feedback after the session, and we will promptly resolve the problem for you.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
numpy(("`NumPy`")) -.-> numpy/ArrayManipulationGroup(["`Array Manipulation`"])
python(("`Python`")) -.-> python/ModulesandPackagesGroup(["`Modules and Packages`"])
python(("`Python`")) -.-> python/PythonStandardLibraryGroup(["`Python Standard Library`"])
python(("`Python`")) -.-> python/DataScienceandMachineLearningGroup(["`Data Science and Machine Learning`"])
numpy(("`NumPy`")) -.-> numpy/ArrayBasicsGroup(["`Array Basics`"])
numpy(("`NumPy`")) -.-> numpy/MathandStatisticsGroup(["`Math and Statistics`"])
numpy/ArrayManipulationGroup -.-> numpy/reshape("`Reshape`")
python/ModulesandPackagesGroup -.-> python/importing_modules("`Importing Modules`")
python/ModulesandPackagesGroup -.-> python/using_packages("`Using Packages`")
python/PythonStandardLibraryGroup -.-> python/math_random("`Math and Random`")
python/DataScienceandMachineLearningGroup -.-> python/numerical_computing("`Numerical Computing`")
numpy/ArrayBasicsGroup -.-> numpy/1d_array("`1D Array Creation`")
numpy/ArrayBasicsGroup -.-> numpy/data_array("`Data to Array`")
numpy/ArrayBasicsGroup -.-> numpy/data_type("`Data Types`")
numpy/MathandStatisticsGroup -.-> numpy/math_ops("`Math Operations`")
subgraph Lab Skills
numpy/reshape -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
python/importing_modules -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
python/using_packages -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
python/math_random -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
python/numerical_computing -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
numpy/1d_array -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
numpy/data_array -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
numpy/data_type -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
numpy/math_ops -.-> lab-86396{{"`Creating Numpy Arrays From Numerical Ranges`"}}
end