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.
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.
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.
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
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.
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)
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!
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
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
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.
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.....
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?
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.
Really amazing, if someone does not understand programming concepts from your videos then programming is not a way for that person...was joking...still anyone can learn to program....I love your all videos.
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
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
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
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?
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.
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?
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.
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 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 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
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?
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)
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 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
any body please clear my doubt.it goes like this "we are creating array like this - "array([564,34,34])"- here we are using box bracket what if if we create array like this "array((564,34,34))"-brackets.whats difference between these two brackets.is it going to take these brackets()-as tuple "
How to create a blank array in numpy.. using array('i',[]) it's not possible as we don't need to give 'i' in numpy. We even cannot import array function alongwith numpy.
i am getting the following error whlie installing numpy - ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy-1.18.2.dist-info' Consider using the `--user` option or check the permissions. what should i do?
I started learning programming through this Python playlist. It's the BEST!
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
Simple way to learn python, thanks for creating such excellent videos and keeping it free for everyone to learn .
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
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 😀
You increase my knowledge about python array to a higher level....You are really a genius
ע״י ה. בה
😊
בהה 😊
הנעהבעבי כביבי 😊
Ur teaching is paranormal to others teaching sir I would like to appreciate ur videos sir tq....
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.
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
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 clearly logspace once again so many has doubts on that
Thank you very much. You are a genius.
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
Congrats sir, it reached 1M subscribers 😍😊
nice one Mr == right sir. can't stop learning and running this
sir please start a project so we can implement all things
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.
sir, but what is the use of this zeros and ones function in array...& when it can be use
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
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)
Thanks sir
You are supporting us .
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!
are arange() and range() the same?
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
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
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.
Clear and concise. it would be more useful if any real time examples are discussed
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.....
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
we can also create an array though identity matrix like np.identity(3). It will create an identity matrix of 3x3.
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
thank you so much sir.....
very helpful......
first comment........
Mr, Reddy.. Superb..
2:10 what is int"32"? and is logspace related to logarithms?
Really amazing, if someone does not understand programming concepts from your videos then programming is not a way for that person...was joking...still anyone can learn to program....I love your all videos.
The best! Keep it going
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.)
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
at 06:51 why 15 was not printed as you said last element will be included
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
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
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.
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)
Hi sir,
Can we find the series of sinx and the value of sine function at different values of x.
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
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
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
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
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.
could you explain zeros(),ones(),logspace(),linespace().
Nice video , But this video creates lots of questions like where can we use these functions and whats the use of these functions.
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?
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.
why linspace() and arange() not working in jupyter notebook
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 , 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)
Sir i have a question... What if it contain float,int,str ?? Then in what it will be converted ?
Thanks bhaiya
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 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?
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
Why float64 at 3:44 in video?
at 03:25 in float64 what is the mean of 64
64bits
Sir,
in the output there is float64 in the starting of the lecture. what is 64?
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?
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)
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???
sir can please clarify the linespace method what are the parameters for statring and ending and for break points it is very confusing
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 how we can pass an multi dimensional array getting inputs from user
sir, can we take user input to create an array when we import numpy ???
Hi Sir,
but where we can use this different arrays
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?
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
any body please clear my doubt.it goes like this "we are creating array like this - "array([564,34,34])"- here we are using box bracket what if if we create array like this "array((564,34,34))"-brackets.whats difference between these two brackets.is it going to take these brackets()-as tuple "
How to create a blank array in numpy.. using array('i',[]) it's not possible as we don't need to give 'i' in numpy. We even cannot import array function alongwith numpy.
Is arange same as range .in that also last value excluded??
Thank you sir
t-3.19 mins
I don't know the reason why 15 is not printed in the output region.
Please explain???
Can we use these functions for creating multi dimensional arrays
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
after installing numpy also i am getting error "unresolved reference array" please suggest solution
same
what if we don't specify the 3rd parameter in arange()....for example arange(10,2)??
Hlo alienbro at first what is the number after the int and float that is 32 and 64 what are that numbers
i am getting the following error whlie installing numpy -
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy-1.18.2.dist-info'
Consider using the `--user` option or check the permissions.
what should i do?
Thank you Sir : )
Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
What is the use of zeros() and ones() function?
hi when i am trying to create an array after installing numpy it's throwing an error saying array is not defined. could someone address to this issue
same problem occurs for me too..Is the problem still occurs
I am also having Same problem
sir, for what purpose we need zeroes and ones, I didn't understand could you pls explain.
today I just saw your meet up video, but it was late because I saw it on 11, I request you to tell about case studies,
i'am from science background.
Sir, how to take user input using numpy array ?
Sir, Where we can use logspace , can u give us some Idea ?
😊
Sir please make same video of numpy using IDLE in IDLE it shows lots of error in same kind of code
sir... mine is showing undefined array...what to do so?
Sir, how can we create an array dynamically using numpy library?
how to create 3 *3 matrix with all zeros elements using function zeros(),how to create multi dimesional arrays by taking values from user sir?