Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the benefits of NumPy arrays over (nested) Python lists?

Answer Posted / hr@tgksolutions.com

Python lists are suitable general-purpose containers. Python's list comprehensions make them easy to develop and use, and they enable (relatively) fast insertion, deletion, appending, and concatenation.

They have several drawbacks, such as the inability to perform "vectorized" operations like elementwise addition and multiplication and the requirement for Python to store type information for each element while working on it due to the possibility of include objects of multiple kinds.

Histograms, algebra, linear, basic statistics, rapid searching, convolutions, FFTs, and more are among the characteristics that make NumPy arrays faster.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What statement is used in python if the statement is required syntactically but no action is required for the program?

814


How do I run a python file in python shell?

826


What will be the output of the code:def foo (i=[])?

840


What is the best tutorial for python?

987


What is the output of print str[4: ] if str = ‘ python language’?

856


Tell me how do you debug a program in python?

845


explain the reduce() function?

857


What is thread join in python?

825


How to get current directory using python?

974


Which database is best with python?

860


Is there any equivalent to scanf() or sscanf()?

968


What are the rules for global and local variables in python?

895


What is PEP8?

931


Should I learn r or python?

839


Explain python’s slice notation?

889