## numpy tutorial – introduction

This tutorial covers an introduction to numpy python module. We’ll see why numpy is very popular and talk about its main feature “n dimensional array”. It is memory efficient, fast and convenient compared to python native list.

Topics that are covered in this Python Video:
0:00 what is numpy?
1:24 benefits of numpy array over python list
3:48 numpy using less memory (Memory presentation diagram of numpy and python array )
5:08 why numpy is fast and convenient

Next Video:

Website: http://codebasicshub.com/

Source

### Comment List

• codebasics
December 1, 2020

why do i get print(sys.getsizeof(5)) – 28 ??

• codebasics
December 1, 2020

I dont know anything about coding and all

• codebasics
December 1, 2020

Ok , Why does python lists exist then ?

• codebasics
December 1, 2020

Python по скайпу. Научу мыслить нестандартно. Решаем задачки, строим утилиты, игры. Data Science и всё, что с эти связано. Телега у меня в контактах. Напиши мне

• codebasics
December 1, 2020

In my comp the size diff is 28vs8 instead of 14vs4. Is this because of 32bit and 64bit sys?

• codebasics
December 1, 2020

why only my numpy array taking more time than python list, rest everything is same

• codebasics
December 1, 2020

can you pls help me what wrong in this

i have tried an example:

Write a NumPy program to replace all elements of NumPy array that are greater than specified array.

data=np.array(([4, 4, 3], [7, 5, 3], [5, 3,1]))

print(data)

for i in data:

if i > 5:

i ==5

else:

i == data
print(data)

i want the output as

Replace all elements of the said array with 5 which are greater than 5

[[4 4 3]

[5 5 3]

[5 3 1]]

• codebasics
December 1, 2020

What is the reason of putting 5 in braces for sys.getsizeof() for list only?
For array why you did not use same thing?

• codebasics
December 1, 2020

thanks

• codebasics
December 1, 2020

Quality content

• codebasics
December 1, 2020

l = range(1000) does not give you a list. You need to write: l = list(range(1000))

• codebasics
December 1, 2020
• codebasics
December 1, 2020

Nice video… But how did you assigned list in integer??

• codebasics
December 1, 2020

(I have Python 3.5.2 installed in Ubuntu 16.04.5)
For the above code, why I'm getting the following output rather than (14000 & 4000):

24000
8000

• codebasics
December 1, 2020

Thank you for explaining it so simple way…..

• codebasics
December 1, 2020

Awesome

• codebasics
December 1, 2020

U have a kashmiri accent….. Anyways good tutorial

• codebasics
December 1, 2020

great tutorial!

• codebasics
December 1, 2020

a = np.arange(1000).
print (a.itemsize * a.size)
I get 8000. (8 bites) can you please explain this?

• codebasics
December 1, 2020

error importing mysqldb….m using python 3.7..module working in cmd prompt but not in jupytor notebook..i have tried all possible like MySqldb……….sql.connector..all experts are failed to help me..can u solve. im tryong to connect with mysql database using python..
success to installing..but failed to import in jupytor anaconda..

• codebasics
December 1, 2020

kya ye complet tutorial he numpy ka? can u uplode veidos on matrix in numpy

• codebasics
December 1, 2020

Hi,hello all, I have one csv file and one xlsx file..
My requirement is I want to read the data of particular row and column from csv file
And that data need to write in particular row and column to an xlsx file…..Any suggestions would be appreciated