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
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
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.
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
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.
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!
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.
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.....
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
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)
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 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.
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?
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 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...!
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
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)
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
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 "
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
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 😀
Ur teaching is paranormal to others teaching sir I would like to appreciate ur videos sir tq....
Sir please explain clearly logspace once again so many has doubts on that
Thank you very much. You are a genius.
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
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
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.
Congrats sir, it reached 1M subscribers 😍😊
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 start a project so we can implement all things
nice one Mr == right sir. can't stop learning and running this
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
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.
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
choomeshwar.........you are too good. God bless you.
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
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!
sir, but what is the use of this zeros and ones function in array...& when it can be use
we can also create an array though identity matrix like np.identity(3). It will create an identity matrix of 3x3.
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)
may god bless u sir,,,,u r really doing a very good job!!
could you explain zeros(),ones(),logspace(),linespace().
Thanks sir
You are supporting us .
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.)
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
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.
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.....
Mr, Reddy.. Superb..
2:10 what is int"32"? and is logspace related to logarithms?
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
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
thank you so much sir.....
very helpful......
first comment........
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
Nice video , But this video creates lots of questions like where can we use these functions and whats the use of these functions.
Sir..I have 2doubts first is why it gives int34...and float64....and the another is logspace...I didn't understand this function..
Clear and concise. it would be more useful if any real time examples are discussed
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
The best! Keep it going
at 06:51 why 15 was not printed as you said last element will be included
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 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.
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 sir,
Can we find the series of sinx and the value of sine function at different values of x.
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.
Thanks bhaiya
why linspace() and arange() not working in jupyter notebook
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
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
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 please explain the logspace() and linspace()
What's the use of Zeroes and ones array ?
Can u mention how and where we can implement these?
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...!
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
Hi Sir,
but where we can use this different arrays
Sir,
in the output there is float64 in the starting of the lecture. what is 64?
What is the use of zeros() and ones() function?
Can we use these functions for creating multi dimensional arrays
Hlo alienbro at first what is the number after the int and float that is 32 and 64 what are that numbers
at 03:25 in float64 what is the mean of 64
64bits
Sir logspace() is difficult one
sir please explain once again logspace()
Why float64 at 3:44 in video?
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)
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 have a question... What if it contain float,int,str ?? Then in what it will be converted ?
sir what is the use of linspace and logspace
all these r 1-d arrays so do we need numpy in this cases
Hi sir
Int and float is there
But how to came int32 and float64
Sir please make same video of numpy using IDLE in IDLE it shows lots of error in same kind of code
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 how we can pass an multi dimensional array getting inputs from user
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
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?
Sir, Where we can use logspace , can u give us some Idea ?
😊
sir... mine is showing undefined array...what to do so?
sir can please clarify the linespace method what are the parameters for statring and ending and for break points it is very confusing
Y to came in output like int32 amd float64.
Iam not understand sir
t-3.19 mins
I don't know the reason why 15 is not printed in the output region.
Please explain???
Is arange same as range .in that also last value excluded??
hey can I get notes of all python videos available on this channel
I just wanna know....where to use it... really fast
Thank you sir
Sir, how can we create an array dynamically using numpy library?
So why we from array import
When we can use numpy???
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!!
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 "
after installing numpy also i am getting error "unresolved reference array" please suggest solution
same
sir, can we take user input to create an array when we import numpy ???
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
I did not understand that what is Logspace and how to calculate?
How to create a numpy array taking user input?