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 / glibwaresoftsolutions

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 are the optional statements that can be used inside a block in python?

839


Is nodejs faster than python?

766


How do you alphabetize a list in python?

840


What are the advantages of python?

782


What is %s %d in python?

789


How do you check if a list is empty in python?

818


How to get a random number in python?

915


What is the output of print str * 2 if str = 'hello world!'?

1760


What are the different types of reuest in python?

893


How many items are in a list python?

851


What are python dictionaries?

870


Is end a keyword in python?

803


In python, how can you generate random numbers?

850


What is numpy array?

796


What are the immutable build-in data types of python?

927