numpy.alen() is used to return the length of the first dimension of the input array.
Syntax: numpy.alen (arr)
arr: [array_like] Input array.
Return: [int] Length of the first dimension of arr.
Code # 1:
Input array: [[2 , 0, 7], [0, 5, 9]] Length of the first dimension of arr: 2
Code # 2:
Input array: [[[0 1 2] [3 4 5] [6 7 8]]] Length of the first dimension of arr: 1
This book is an indispensable guide focuses on Machine Learning and R Programming, in an instructive and conversational tone which helps them who want to make their career in Big Data Analytics/ Data ...
Efficiently perform data collection, wrangling, analysis, and visualization using Python. Recent advancements in computing and artificial intelligence have completely changed the way we understand ...
Python Data Science Handbook: Essential Tools for Working with Data - PDF, 1st Edition For many researchers, Python is a first-class tool, primarily because of its libraries for storing, manipulati...
Learning to code is tremendous fun as you can get instant results, no matter how much more you have to learn. In fact, it’s such fun creating games and programs that it feels effortless once you’r...