thank you.....its fun learning with you....being cs student i was always afraid of coding...but the way you are teaching really creates interest and enjoy learning.....thankyou so much sir
Hehe I am a total and complete n00b, you lost me at round lesson #21 to be honest, I am still going along to try and grasp the terminology etc. I think things will start coming together when I start doing practical examples. The material is incredible and I am loving it !
It’s useful in numerical methods. Divided values means diving the range in particular parts. Like if you divide 3 in 4 parts, 3/4 = 0.75 So, the values will be 0, 0.75, 1.50 and 2.25
Hi Sir, You are doing a great job. I would like to give a feedback for this video. While importing module Numpy(or any other module) try to avoid using *, because it may have lots of functions with different names. In future, if we create a variable or method name with same name used in Numpy it may get conflict. Import numpy as np arr = np.array([1,2]) It could be the better way.
Hello Sir, i have a question, in Automation testing which scripting language i should choose java or python for getting job quickly and getting more calls.
in linspace any 2 consecutive numbers in the array will have the difference, whereas in logspace any 2 consecutive numbers will have the same ratio. In this case the array starts at 1 * 10^1 and ends at 1 * 10^40. To get from one value in the array to the next you have to MULTIPLY by about 10^10, as opposed to linspace where to get from one number to the next you have to ADD the same value each time. That's my understanding at least.
Can you give us the PDF which will consist of all the concepts,methods to study and a better way to remember and study later Pls consider my question sir pls
Sir, this video is boring just because u weren't visible like in other videos, I highly appreciate the way you teach Python, I request you to make another video series on Java and do what you are doing with python, I mean to be physically present so that we can see you, I seriously think, this way we are able to grasp more of what you teach us!
Hello Navin, thank you for the good job that you continue to do. Just a quick one and not related to the above video, how comprehensive is this series? Does it cover all the basics (topics) that I would require to learn on Python? Thanks.
Difference beween linspace() and logspace(): Suppose you have a cake, and you ask linspace to cut it into 5 parts, linspace will cut it in five EQUAL parts, But if you ask logspace to cut the cake into 5 parts, it will cut the cake in five UNEQUAL parts. Everyone will get different sizes, just that it will cut in five parts that's it.
Your code is incorrect. It does not add 2 arrays. If you want to add 2 arrays, the correct code would be: import numpy as np arr = np.array([1, 2, 3, 4]) arr2 = np.array([1, 1, 1, 1]) a = arr + arr2 print(a)
Hello sir! Ist of all thanks for sharing your knowledge and time with us Second, i wish to work as data scientist and my question is : These 72 videos are sufficient for tackling the problems related to data and all? Or we need to subscribe other websites for more information?
np.ones() function is used to create a matrix full of ones where as np.zeros() function is used to create a matrix full of zeroes. It can be used when you initialize the weights during the first iteration in TensorFlow and other statistic tasks.
Its very useful when u will learn Machine Learning with python. A lot of matrix calculation is involved there. Also yo will need matrix of ones and zeros for calculating things like eigen vectors, inverse of a matrix etc. I hope it cleared your doubt.
Those who want Clarity on logspace() --------------------------------------------------------------------------------------------------------- The values that are given as input are log(base10) values so if input is 2 the actual value is 10^2=100(^ means power) logspace() follows Geometric Progression It uses log(base 10) values. In simple Terms Eg : logspace(2,5,3) here 2 means 10 raised 2 times which is 100 (Prior Knowledge on log is required here) and 5 means 10 raised 5 times which is 100000 In Geometric Progression nth term is a*r^(n-1) (^ means power here a value is 100 n is 3 last term (nth term)= a*r^(n-1)=100000 100*r^(3-1)=100000 100*r^2=100000 r^2=1000 r=10*sqrt(10)=31.622776601683796 so the 3 numbers are 100*(31.622776601683796)^0=100.0 , 100*(31.622776601683796)^1=3162.2776601683795 100*(31.622776601683796)^2=100000.0 So The 3 numbers are 100.0,3162.2776601683795,100000.0 Like If You Got Clarity
Hey Navin, I am really enjoying the python lecture by u. I have query. May please tell me in lecture #29, u typed for the type of the array and is saying int32 or float 64, please clarify what is 32 and 64
Sir, while printing array created using logspace as print('%.2f' %arr[0]), You specified an index of one element. I want to print to the whole array here. Tried different ways as: print('%.2f' %arr), print('%.2f' %arr[]) But none works, getting different errors
This is the first video which is confusing for me earlier than this was the pass and continue confusion but Mr reddy himself clarified in the next video..Lets see.....
I have a doubt, while importing packages ie., what is the difference between "import numpy as np" and "from numpy import *". Is these two are same or different?
please help, i am trying to create the array and the program runs well initially and take the few inputs too but suddenly the program shows error in the middle, here is my program : from numpy import * arr=array([ ]) vals=int(input("Enter the number of slots :")) for i in range(vals): vali=int(input("Enter the value you want to store :")) arr.append(vali) print(arr)
Hello sir, I followed everything installed numpy in the command prompt using 'pip3 install numpy', then installed it through settings in pycharm and then wrote the following code : from numpy import * arr = array('i',[1,2,3,3,4,5]) print(arr) It is still showing me the following error: " " "arr = array('i',[1,2,3,3,4,5]) NameError: name 'array' is not defined" " " Please help me to solve the thing Thankyou
At the starting when you open pycharm it will ask you or by default will create a virtual Environment so this problem occurs. To solve this you need to click on the Existing Environment Button and your problem will be solved
hello sir i installed numpy in the way you mentioned.I am using the default IDLE (python shell ).It still says numpy module doesn't exist when i try to run code.I have also went through sys.path() method to figure out where the IDLE is searching for numpy module and the module exists in that location.please help sir.thanks.
Sir I'm working in IDLE but when I'm importing numpy and writing the code it is showing ' array is not defined ' and I've already installed numpy module . from numpy import * arr = array([1,2,3,4,5]) print(arr) what should I do?
You need to download 64bit version of python By default when you download python from its web it download 32bit version After downloading 64bit version download pip again and install numpy It'll work
Sir if we are getting all the facilities in numpy package itself then what is the purpose of array package? Why it is there in python? As u said that we can also create a single D array in numpy then why to use array package.
In computer software world, int32 means it is an integer of 32 bits long. In other words, it is stored or represented using 32 bits. In comparison, int64 is another type of int which uses 64 bits to store the integer internally. With 32 bits you can count upto 2**32 = N numbers (you do the math 😀to find N ) while with 64 bits you can count N*N numbers. Only in applications where you will need to store numbers greater than N, you will use int64, otherwise you just use int32 to save precious memory (RAM space used by your application)
Those who want Clarity on linspace() -------------------------------------------------------------------------------------------------------------------------- Linspace has separate stuff hidden in it It is similar to Arithmetic Progression. Eg: linspace(0,7,3) in arithmetic Progression we have nth term or last term is a+(n-1)*d In this case a is 0 and n is 3 l=a+(n-1)d=7 0+(3-1)d=7 2d=7 d=7/2 =3.5 d is common difference between 2 adjacent values So the result we get is 0.0 , 3.5 , 7.0 Hope This helps If you are in search of clarity Like It If You got Clarity
Hi, I have newly joined ur classes about python and downloaded the latest version of it, but it's not working, whenever I m feeding input its says error. I cant also run the command prompt, IDLE, and the NumPy installation. what to do?
sir i am not getting answer when i am giving code like this ,after installing numpy also from numpy import * arr=array([1,2,3,4]) print(arr) output : arr=array([1,2,3,4]) NameError: name 'array' is not defined
Sir I am faceing problem with pycharm .....configuration problem that no interpreter found I see many videos but I can't solve ... please suggest me any best video for pycharm settings. .please sir.. Thank you in advance...!
I am getting below error. Why? NameError Traceback (most recent call last) in 1 import numpy as np ----> 2 arr = array ([1,2,3,4,5]) 3 print(arr.dtype) NameError: name 'array' is not defined
Because numpy array are the fundamentals for many python applications. Numpy provides many functions with numpy array. So it is the must-do job for many project, like machine learning. Although you can create very complicate lists, but nobody do that in real project. You can see mine channel too. Python crash course playlist provides almost all the fundamentals. And downloadable source files.
sir my im facing problem with numpy installation in pycharm my idle is has numpy bt my pycharm is showing error for installing of numpy please help me out with it ........my idle is of 32 bits where as pycharm is of 64 and ide is using lattest version of python whereas pycharm is running on 3.7.., so please try to help me out with this and fix this
I have an array of order 8*412 I want to subtract every second row from every first row in the whole array and get it stored in a new array.. Can you suggest me something???
I started learning programming through this Python playlist. It's the BEST!
Simple way to learn python, thanks for creating such excellent videos and keeping it free for everyone to learn .
thank you.....its fun learning with you....being cs student i was always afraid of coding...but the way you are teaching really creates interest and enjoy learning.....thankyou so much sir
Hehe I am a total and complete n00b, you lost me at round lesson #21 to be honest, I am still going along to try and grasp the terminology etc. I think things will start coming together when I start doing practical examples. The material is incredible and I am loving it !
Sir Please don't hide yourself that is more understandable for me...thanks
You increase my knowledge about python array to a higher level....You are really a genius
ע״י ה. בה
😊
בהה 😊
הנעהבעבי כביבי 😊
Sir, can u clearly explain what exactly is logspace(). What is meant that the values are divided on the basis of a logscale
Yes
Same question.. its also important to us how can we use these in real world projects
It’s useful in numerical methods. Divided values means diving the range in particular parts.
Like if you divide 3 in 4 parts, 3/4 = 0.75
So, the values will be
0, 0.75, 1.50 and 2.25
No
@@_parm_ yes 😀
Hi Sir,
You are doing a great job.
I would like to give a feedback for this video. While importing module Numpy(or any other module) try to avoid using *, because it may have lots of functions with different names. In future, if we create a variable or method name with same name used in Numpy it may get conflict.
Import numpy as np
arr = np.array([1,2])
It could be the better way.
It's better that way but for learning purposes it might be overwelming to students to type each function on this video
Sir has discussed this things earlier. Please see the previous videos of this series.
Its good to know. Thanks.
Ur teaching is paranormal to others teaching sir I would like to appreciate ur videos sir tq....
Thank you very much. You are a genius.
Hello Sir, i have a question, in Automation testing which scripting language i should choose java or python for getting job quickly and getting more calls.
sir please explain the logspace() clearly , that is about how will the elements be divided any specific formula
same do u know now?
in linspace any 2 consecutive numbers in the array will have the difference, whereas in logspace any 2 consecutive numbers will have the same ratio. In this case the array starts at 1 * 10^1 and ends at 1 * 10^40. To get from one value in the array to the next you have to MULTIPLY by about 10^10, as opposed to linspace where to get from one number to the next you have to ADD the same value each time. That's my understanding at least.
i think its based on logarithms
Sir please explain clearly logspace once again so many has doubts on that
Congrats sir, it reached 1M subscribers 😍😊
Can you give us the PDF which will consist of all the concepts,methods to study and a better way to remember and study later
Pls consider my question sir pls
nice one Mr == right sir. can't stop learning and running this
Sir, this video is boring just because u weren't visible like in other videos, I highly appreciate the way you teach Python, I request you to make another video series on Java and do what you are doing with python, I mean to be physically present so that we can see you, I seriously think, this way we are able to grasp more of what you teach us!
choomeshwar.........you are too good. God bless you.
Hello Navin, thank you for the good job that you continue to do. Just a quick one and not related to the above video, how comprehensive is this series? Does it cover all the basics (topics) that I would require to learn on Python? Thanks.
yeah it's good for learning python.
Difference beween linspace() and logspace():
Suppose you have a cake, and you ask linspace to cut it into 5 parts, linspace will cut it in five EQUAL parts, But if you ask logspace to cut the cake into 5 parts, it will cut the cake in five UNEQUAL parts. Everyone will get different sizes, just that it will cut in five parts that's it.
thank you bro...now i got it :D
are arange() and range() the same?
add two arrays using for loop:
from numpy import *
arr=array([1,2,3,4],int)
arr1=array([1,1,1,1],int)
for a in arr+arr1:
print(a)
Your code is incorrect. It does not add 2 arrays. If you want to add 2 arrays, the correct code would be: import numpy as np
arr = np.array([1, 2, 3, 4])
arr2 = np.array([1, 1, 1, 1])
a = arr + arr2
print(a)
Hello sir!
Ist of all thanks for sharing your knowledge and time with us
Second, i wish to work as data scientist and my question is : These 72 videos are sufficient for tackling the problems related to data and all? Or we need to subscribe other websites for more information?
Nice yeah
may god bless u sir,,,,u r really doing a very good job!!
addition of array is
from numpy import *
arr1=array([1,2,3,4,5])
arr2=array([6,7,18,9,2])
for i in range(5):
arr3 = arr1+arr2
print(arr3)
You should put a underscore instead of space to assign a variable name. Like this
arr_1
arr_2
Thanks sir
You are supporting us .
sir, but what is the use of this zeros and ones function in array...& when it can be use
Thanks bhaiya
Good tutorial. I know Python but never tried numpy. I've a question: What's the use of numpy functions 'one' and 'zero'?
yeah what's that for
np.ones() function is used to create a matrix full of ones where as np.zeros() function is used to create a matrix full of zeroes. It can be used when you initialize the weights during the first iteration in TensorFlow and other statistic tasks.
Its very useful when u will learn Machine Learning with python. A lot of matrix calculation is involved there. Also yo will need matrix of ones and zeros for calculating things like eigen vectors, inverse of a matrix etc. I hope it cleared your doubt.
Mr, Reddy.. Superb..
Those who want Clarity on logspace()
---------------------------------------------------------------------------------------------------------
The values that are given as input are log(base10) values
so if input is 2 the actual value is 10^2=100(^ means power)
logspace() follows Geometric Progression
It uses log(base 10) values. In simple Terms
Eg : logspace(2,5,3)
here 2 means 10 raised 2 times which is 100 (Prior Knowledge on log is required here)
and 5 means 10 raised 5 times which is 100000
In Geometric Progression nth term is a*r^(n-1) (^ means power
here a value is 100
n is 3
last term (nth term)= a*r^(n-1)=100000
100*r^(3-1)=100000
100*r^2=100000
r^2=1000
r=10*sqrt(10)=31.622776601683796
so the 3 numbers are
100*(31.622776601683796)^0=100.0 ,
100*(31.622776601683796)^1=3162.2776601683795
100*(31.622776601683796)^2=100000.0
So The 3 numbers are 100.0,3162.2776601683795,100000.0
Like If You Got Clarity
Hey Navin, I am really enjoying the python lecture by u. I have query. May please tell me in lecture #29, u typed for the type of the array and is saying int32 or float 64, please clarify what is 32 and 64
It is size of int and float
sir please start a project so we can implement all things
2:10 what is int"32"? and is logspace related to logarithms?
Clear and concise. it would be more useful if any real time examples are discussed
The best! Keep it going
we can also create an array though identity matrix like np.identity(3). It will create an identity matrix of 3x3.
thank you so much sir.....
very helpful......
first comment........
from numpy import *
arr1=array([1,8,3,4])
arr2=array([7,3,6,5])
arr3=[]
for i in range(len(arr1)):
arr3.append(arr1[i]+arr2[i])
print(arr3)
bro append doesn't work in numpy
Sir, while printing array created using logspace as print('%.2f' %arr[0]), You specified an index of one element. I want to print to the whole array here. Tried different ways as: print('%.2f' %arr), print('%.2f' %arr[]) But none works, getting different errors
sir ur best but this time i had a little trouble in understanding logspace
if someone can explain it too me dont fell shy to reply
It is just the four parts from 1 to 40.
Eg (1.09800,2.3454000,7.0987700,37.)
This is the first video which is confusing for me earlier than this was the pass and continue confusion but Mr reddy himself clarified in the next video..Lets see.....
could you explain zeros(),ones(),logspace(),linespace().
Hello sir thank you so much for this tutorial it's a great help, just one double in this video- can't understand logspace() , please help
at 06:51 why 15 was not printed as you said last element will be included
Sir..I have 2doubts first is why it gives int34...and float64....and the another is logspace...I didn't understand this function..
Sir I install numpy in pycharm according to your commons but while importing numpy it's showing an error
Why and how to ressolve it
bro first update numpy then install it
Okk done
Same problem
Sir plzz give solution to this problem without solving it we can't proceed sir plzz reply 🤕
if you are using the script as name 'numpy' just rename it and it will work fine then.
Hi sir,
Can we find the series of sinx and the value of sine function at different values of x.
Thank you sir
I have a doubt, while importing packages ie., what is the difference between "import numpy as np" and "from numpy import *". Is these two are same or different?
why linspace() and arange() not working in jupyter notebook
please help, i am trying to create the array and the program runs well initially and take the few inputs too but suddenly the program shows error in the middle, here is my program :
from numpy import *
arr=array([ ])
vals=int(input("Enter the number of slots :"))
for i in range(vals):
vali=int(input("Enter the value you want to store :"))
arr.append(vali)
print(arr)
arr .append(i)
sir, can u please explain logsapace() clearly and when we use dtype function it shows int 32 and float 64 but what is the meaning of that numbers?
float 64 means 64 is a bit size of float
1 bit = 8 bytes
Hello sir, I followed everything installed numpy in the command prompt using 'pip3 install numpy', then installed it through settings in pycharm and then wrote the following code :
from numpy import *
arr = array('i',[1,2,3,3,4,5])
print(arr)
It is still showing me the following error:
" " "arr = array('i',[1,2,3,3,4,5])
NameError: name 'array' is not defined" " "
Please help me to solve the thing
Thankyou
At the starting when you open pycharm it will ask you or by default will create a virtual Environment so this problem occurs. To solve this you need to click on the Existing Environment Button and your problem will be solved
@@techsp6379 Thanks for the suggestion ✌🏻 I'll try it by choosing existing environment
@@ruchiradeshpande6872 Most welcome and always being helpful for all Technosavvy
hello sir
i installed numpy in the way you mentioned.I am using the default IDLE (python shell ).It still says numpy module doesn't exist when i try to run code.I have also went through sys.path() method to figure out where the IDLE is searching for numpy module and the module exists in that location.please help sir.thanks.
Sir I'm working in IDLE but when I'm importing numpy and writing the code it is showing ' array is not defined ' and I've already installed numpy module .
from numpy import *
arr = array([1,2,3,4,5])
print(arr)
what should I do?
same problem bro
import numpy as np
arr = np.array()
you can try it like this
When I click on that + sign in project interpreter, it says error loading packages.... What do I do??
try again after closing current window
Same problem...how to install package
You need to download 64bit version of python
By default when you download python from its web it download 32bit version
After downloading 64bit version download pip again and install numpy
It'll work
Sir if we are getting all the facilities in numpy package itself then what is the purpose of array package? Why it is there in python? As u said that we can also create a single D array in numpy then why to use array package.
what does int32 mean when we look for dtype?
In computer software world, int32 means it is an integer of 32 bits long. In other words, it is stored or represented using 32 bits. In comparison, int64 is another type of int which uses 64 bits to store the integer internally. With 32 bits you can count upto 2**32 = N numbers (you do the math 😀to find N ) while with 64 bits you can count N*N numbers. Only in applications where you will need to store numbers greater than N, you will use int64, otherwise you just use int32 to save precious memory (RAM space used by your application)
Sir,
in the output there is float64 in the starting of the lecture. what is 64?
Hi Sir, Your teaching skills are excellent. I have a doubt, can I use python instead of javascript?
no
python is used for back end programming whereas javascript is for front end
Those who want Clarity on linspace()
--------------------------------------------------------------------------------------------------------------------------
Linspace has separate stuff hidden in it It is similar to Arithmetic Progression.
Eg: linspace(0,7,3)
in arithmetic Progression we have nth term or last term is a+(n-1)*d
In this case a is 0 and n is 3
l=a+(n-1)d=7
0+(3-1)d=7
2d=7
d=7/2 =3.5
d is common difference between 2 adjacent values
So the result we get is
0.0 , 3.5 , 7.0
Hope This helps If you are in search of clarity
Like It If You got Clarity
Nice video , But this video creates lots of questions like where can we use these functions and whats the use of these functions.
Sir , this arange doing same as range
whats is specific use of this arange ??
for ex: arange(1,15,2) output of this is same as that of range(1,15,2)
Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sir i have a question... What if it contain float,int,str ?? Then in what it will be converted ?
Hi Sir,
but where we can use this different arrays
Hi, I have newly joined ur classes about python and downloaded the latest version of it, but it's not working, whenever I m feeding input its says error. I cant also run the command prompt, IDLE, and the NumPy installation. what to do?
Why float64 at 3:44 in video?
sir i am not getting answer when i am giving code like this ,after installing numpy also
from numpy import *
arr=array([1,2,3,4])
print(arr)
output :
arr=array([1,2,3,4])
NameError: name 'array' is not defined
Yes! me too.. what to do?
at 03:25 in float64 what is the mean of 64
64bits
very helpful
Sir please explain the logspace() and linspace()
Can we use these functions for creating multi dimensional arrays
Thank you Sir : )
sir, can we take user input to create an array when we import numpy ???
Is arange same as range .in that also last value excluded??
sir i have installed numpy but its still giving error what should i do?
did you fix the problem ??
@@toufiktechnou2221 guess not
Yes of course not!!
sir can please clarify the linespace method what are the parameters for statring and ending and for break points it is very confusing
sir please explain once again logspace()
Sir I am faceing problem with pycharm .....configuration problem that no interpreter found I see many videos but I can't solve ... please suggest me any best video for pycharm settings. .please sir.. Thank you in advance...!
sir... mine is showing undefined array...what to do so?
sir i am anable to install numpy
there is no pip3 or any pip file exits in my idle
u dont need to do it on idle
What is the use of zeros() and ones() function?
Hlo alienbro at first what is the number after the int and float that is 32 and 64 what are that numbers
t-3.19 mins
I don't know the reason why 15 is not printed in the output region.
Please explain???
after installing numpy also i am getting error "unresolved reference array" please suggest solution
same
Sir, Where we can use logspace , can u give us some Idea ?
😊
I am getting below error. Why?
NameError Traceback (most recent call last)
in
1 import numpy as np
----> 2 arr = array ([1,2,3,4,5])
3 print(arr.dtype)
NameError: name 'array' is not defined
Sir please make same video of numpy using IDLE in IDLE it shows lots of error in same kind of code
1:53
dtype is not working sir
what if we don't specify the 3rd parameter in arange()....for example arange(10,2)??
hey can I get notes of all python videos available on this channel
THANK YOUUUU
sir, for what purpose we need zeroes and ones, I didn't understand could you pls explain.
Sir why do we use arrays if we have lists in python??
Because numpy array are the fundamentals for many python applications. Numpy provides many functions with numpy array. So it is the must-do job for many project, like machine learning. Although you can create very complicate lists, but nobody do that in real project. You can see mine channel too. Python crash course playlist provides almost all the fundamentals. And downloadable source files.
from numpy import *
arr=array({3,5,76,3,35,63,46})
print(arr.dtype)
why i get output as object??
You should use [ ] not { }.
Apke numpy work kr raha hai?
sir my im facing problem with numpy installation in pycharm my idle is has numpy bt my pycharm is showing error for installing of numpy
please help me out with it ........my idle is of 32 bits where as pycharm is of 64 and ide is using lattest version of python whereas pycharm is running on 3.7.., so please try to help me out with this and fix this
Sir why u used dtype for knowing type of data why hadn't u used typecode as u used in array..??
Y to came in output like int32 amd float64.
Iam not understand sir
I have an array of order 8*412 I want to subtract every second row from every first row in the whole array and get it stored in a new array.. Can you suggest me something???