Hello Krish, I am obliged to take time and express my gratitude towards your efforts and teaching method. I am watching your tutorials since yesterday, and I just so happy to learn and actually understand everything. I am looking forward to follow the playlist, and excited to learn. Thanks man, you deserve our respect and the money as well, I will be joining your membership. I will request all the people who are reading my comment to consider joining the membership to help him grow❣
Q1-If I pick up 4,5 from 2nd row And 6,8 from third row than In. is Arr[1: , 2:4] Q2-Pick up 3,4,5 from 2nd row than In. is Arr[1:2,1:4] Thank you so much sir.
Thank you soo much Krish. I am recommending your channel to all my friends. I really like your genuine teaching passion. I learn a lot from all your videos. Thanks for being a mentor.
Absolutely great content being put here by this man. I wish there were more teachers like him across different domains. What a stupendous job he is doing here.
@@ShubhamKumar-nr1ce i am learning FastAPI and the future plan is to learn react and follow panaverse GitHub repository to learn the complete ecosystem of modern python and generative ai.
For the subarray 4, 5, 6, 8 code is: arr[1: , 2: 4] For the subarray 3, 4, 5 code is: arr[1, 1: 4]. I started your session, sir, really your contents are truly valuable. Thanks for making this all happen. I wanna learn as best as possible about the concept of Machine Learning. Really glad that I found your channel at the time when I was in its complete need. Thank you soo much, sir
Hi Krish, Python is made so simple to learn from you. Always had difficulty in understanding and remembering from other tutors. Never felt it so easy and enjoyable to learn. Thank you for your efforts.
@@tintintintin576 At that time i was unaware of GATE exam and the brand value of doing masters in IIT. It all depends on individual's choice. We all love to work in latest technologies in top notch companies and we even learn everything out of curiosity forgetting the easiest path to reach there is to have CS foundation strong and doing m.tech in IIT.
Hey @SATHIYA RAJ can u help me pls in learning data science in python as I am complete fresher can u pls get in touch through telegram or discord . Also I am new to his channel I am planning to access all its content and side by side a mentor and a friend 🙏
Bro! You're helping us all a lot! Proud of you! An Indian teaching everything in depth. Thanks so so much. Keep up the good work. Looking forward to pandas tutorial too. 🤘🏻🤘🏻🤘🏻
Honestly glad to have come across your channel and it brings in humungous value to the folks trying to learn. You are truly the best. You make commendable efforts and as a part of the learning community, I hold enormous respect for your contribution in helping us. (y)
*Numpy *Array 1.Creating One Dimensional array. 2.Creating Two Dimensional array. 3.Shape, reshape and indexing(slicing) done in two dimensional. 4.In-built function present in numpy- arange, linspace, ones, random.(and more) 5.Concept of copy and Exploratory data analysis Please share the list built-in functions of numpy. Thanks
Thanks for the videos. One change : Here, even if the elements are of not same data type, arrays can be created. So, they need not be of same data type. import numpy as np my_lst1=[1,2,3,'sdfs',5] my_lst2=[2,3,4,5,6] my_lst3=[9,7,'wow',8,9] arr=np.array([my_lst1,my_lst2,my_lst3]) print(arr)
Following are taught in video: -Array definition - Numpy library import - Array Shape and Reshape - Array indexing - Array Range - Array linspace - Array copy and broadcasting - some functions in Array like np.ones, np.random.rand (random distribution), np.random.randn (normal distribution), np.random.randint etc.
this is one of the best playlist for learning python for data science, can you please tell me how can I practice without anaconda environment? As my PC does not support the environment.
First of all thank u so much for amazing tutorials on python. I have a question. When I do this, my_lst=[1,2,3,4] arr=np.array([my_lst]) arr The output comes as array([[1,2,34]]) Is it two dimensional then?
Hi..In[105] -( val=2)..in this case we take "val" to do the operations like...arr*val, arr>val,.......correct me if i am wrong..Thank you Krish for your valuable teaching
I have a request to make : if you could provide a mind map of the things that we are learning in numpy, pandas, matplotlib and other python libraries that we are going to learn that would be really helpful.....getting to know all the things that we have to learn will be better for better understanding and remembering also. looking forward to your reply.
Here are the functions mentioned in the video with examples: * Creating arrays: * `np.array()`: This function is used to create arrays from various data types like lists, tuples, etc. For example, `np.array([1, 2, 3, 4, 5])` creates a one-dimensional array with elements 1, 2, 3, 4, and 5. * `np.zeros()`: This function creates an array filled with zeros. For example, `np.zeros((3, 4))` creates a two-dimensional array with 3 rows and 4 columns, all filled with zeros. * `np.ones()`: This function creates an array filled with ones. For example, `np.ones((2, 2))` creates a two-dimensional array with 2 rows and 2 columns, all filled with ones. * `np.random.rand()`: This function creates an array filled with random floats between 0 and 1. For example, `np.random.rand(2, 3)` creates a two-dimensional array with 2 rows and 3 columns, filled with random floats between 0 and 1. * `np.random.randn()`: This function creates an array filled with random samples from the standard normal distribution. For example, `np.random.randn(3, 3)` creates a two-dimensional array with 3 rows and 3 columns, filled with random samples from the standard normal distribution. * Indexing and slicing: * `[]`: This operator is used to access elements of an array. For example, `arr[0]` accesses the first element of the array `arr`. * `[:, :]`: This is used to access all elements of an array. For example, `arr[:, :]` accesses all elements of the array `arr`. * `[start:stop:step]`: This is used to slice an array. For example, `arr[1:4:2]` selects elements from index 1 to index 4 (excluding index 4) with a step of 2. * Mathematical operations: * `+`, `-`, `*`, `/`: These operators are used to perform basic arithmetic operations on arrays element-wise. For example, `arr1 + arr2` adds the corresponding elements of arrays `arr1` and `arr2`. * `x * arr`: This multiplies each element of the array `arr` by the scalar `x`. * `arr.shape`: This attribute returns the shape of the array as a tuple of integers. For example, `arr.shape` might return `(3, 4)`, indicating that the array has 3 rows and 4 columns. * Reshaping: * `np.reshape()`: This function is used to reshape an array into a new shape. For example, `np.reshape(arr, (2, 6))` reshapes the array `arr` into a two-dimensional array with 2 rows and 6 columns. * Other functions: * `np.dot()`: This function is used to perform dot product or matrix multiplication between arrays. * `np.sum()`: This function is used to calculate the sum of all elements in an array. * `np.mean()`: This function is used to calculate the mean of all elements in an array. These are just a few of the many functions available in NumPy. I hope this helps! -courtesy:GeminiAI
My bad, should have searched first. Found it: stackoverflow.com/questions/38402227/numpy-why-is-there-a-difference-between-x-1-and-x-dimensionality Concise explanation for those who are interested: (x,) is a 1D array (x,1) is a 2D array (!), the length of it's second element is 1. Also, Numpy does not have vectors or matrices, only n-dimensional arrays. That helps understand this better.
18.07 when we print "arr" the output array is comma seperated but when we print "arr1" output is space seperated.. why? when we use linspace the array is of shape 10 rows and 5 columns .. why? and why not 25 rows and 2 column or other?
Thanks Krish for these videos👏.I am a beginner in python and from bio science background.I am using pycharm for coding and found differences in syntaxes in pycharm than jupiter notebook.Why it is like that?kindly reply.
the diffrences will always be there, Just get your basics clear about the syntax and how the data should be approached. you can use either of them depending upon your requirements.
sir can u plz help me..mai Pychm use kr rhe hu bt use me numpy import error show kr rha..mai google kiya kuch nhi mila information ki kaise thik kru..bs yahi bol rhe h problem aati h so plz help
New threads comes in :5: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. arr=np.array([lst1,lst2,lst3]) this want work anymore
Bro I find your tutorials are so good and useful. I have a question where to start...?. There are lot of video playlists like stats,Ml,python...Please suggest me to learn data science as a beginner ,first i have to go through stats or Machine learning...please suggest bro,
@@krishnaik06 import sympy as sp import numpy as np l1=[2,3,5,7] a=np.array(l1) print(type(a[1])) print(sp.isprime(i for i in a)) why doesn't this programme giving me correct output? how to check any array has prime NUMBERS using sympy methods?
Krish if [0:2,:] means it needs to retrieve all three rows right? But in this tutorial we are getting only first two rows as output . how? shall you kindly explain?
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] arr1 = arr.copy() arr1[3:] = 67 print(arr1) for this code i'm getting errory , i replaced it with [67] the out put is only [1,2,3,67] how can i get all the remaining values as 67
Who want to clap for this man👏👏
👏🏻👏🏻👏🏻👏🏻
👍👍👏
Thank you very much sir, pl. keep sharing your knowledge, so useful..for everyone..God bless you.
Rajashekar Barapata he's the best ! I have improved greatly!
I have improved my index concept gratly
Hello Krish, I am obliged to take time and express my gratitude towards your efforts and teaching method. I am watching your tutorials since yesterday, and I just so happy to learn and actually understand everything. I am looking forward to follow the playlist, and excited to learn. Thanks man, you deserve our respect and the money as well, I will be joining your membership.
I will request all the people who are reading my comment to consider joining the membership to help him grow❣
What membership ?
Q1-If I pick up 4,5 from 2nd row
And 6,8 from third row than In. is
Arr[1: , 2:4]
Q2-Pick up 3,4,5 from 2nd row than
In. is Arr[1:2,1:4]
Thank you so much sir.
Thank you soo much Krish. I am recommending your channel to all my friends. I really like your genuine teaching passion. I learn a lot from all your videos. Thanks for being a mentor.
Absolutely great content being put here by this man. I wish there were more teachers like him across different domains. What a stupendous job he is doing here.
I never thought understanding the prerequisite of machine learning is that much easy and Krish sir you make it alot easier.
hello sir what are you doing now means which domain
@@ShubhamKumar-nr1ce i am learning FastAPI and the future plan is to learn react and follow panaverse GitHub repository to learn the complete ecosystem of modern python and generative ai.
For the subarray 4, 5, 6, 8 code is:
arr[1: , 2: 4]
For the subarray 3, 4, 5 code is:
arr[1, 1: 4].
I started your session, sir, really your contents are truly valuable. Thanks for making this all happen. I wanna learn as best as possible about the concept of Machine Learning.
Really glad that I found your channel at the time when I was in its complete need.
Thank you soo much, sir
For sub array 3,4,5 it can be arr[1:2,1:4]
Hi Krish, Python is made so simple to learn from you. Always had difficulty in understanding and remembering from other tutors. Never felt it so easy and enjoyable to learn. Thank you for your efforts.
I started watching this playlist today after knowing the learning path from your yesterday's video. thanks a lot
How far you've reached...? Just asking out of curiosity...
@@tintintintin576 At that time i was unaware of GATE exam and the brand value of doing masters in IIT. It all depends on individual's choice. We all love to work in latest technologies in top notch companies and we even learn everything out of curiosity forgetting the easiest path to reach there is to have CS foundation strong and doing m.tech in IIT.
Hey @SATHIYA RAJ can u help me pls in learning data science in python as I am complete fresher can u pls get in touch through telegram or discord . Also I am new to his channel I am planning to access all its content and side by side a mentor and a friend 🙏
@@uditarora1215 i am also a fresher. After gate exam on feb 13, i have started again learning data science full fledged. lets do it together.
Did you become a data scientist or analyst yet?🧐
This is the first video of your channel that i got recommended and man i loved it . Thanks for sharing.
Bro! You're helping us all a lot! Proud of you!
An Indian teaching everything in depth. Thanks so so much. Keep up the good work. Looking forward to pandas tutorial too. 🤘🏻🤘🏻🤘🏻
arr[1:3,2:4] = array([[4, 5],
[6, 8]]) Thank you Krish! I am following your path to become a Data scientist
Honestly glad to have come across your channel and it brings in humungous value to the folks trying to learn. You are truly the best. You make commendable efforts and as a part of the learning community, I hold enormous respect for your contribution in helping us. (y)
Thank you Krish Naik for teaching us by this much of patience. You have cleared so many of my doubts.
His explanation is clear and everything is practical.
Goat of Python bro, learned 3 months work in 3 lectures.
hi, how is this course?
@@pratappawar8899 He explains every concept in detail with examples. I also just started watching a few weeks back.
@@shreyshah7133 what other courses did u watch, which u recommend?
thank you again....i gonna finish your amazing course in a week
For accessing 4,5,6,8 answer is arr[1: , 2:4] and for accessing 3,4,5 answer will be arr[1:2,1:4]
EAGERLY EXPECTING Scikit learn and PLOTLY tutorials. No one has taught about Plotly... If you make this it would be great....
Just 3 videos into and you made it really interesting ❤️❤️🙏🙏🙏
great explanation!!! if I cover all these concepts I will be data scientist within couple of months: Absolute best explanation..
Excited to watch more tutorials on deployment
print(arr[1:,2:4])
print(arr[1:2,1:4])
*Numpy *Array
1.Creating One Dimensional array.
2.Creating Two Dimensional array.
3.Shape, reshape and indexing(slicing) done in two dimensional.
4.In-built function present in numpy- arange, linspace, ones, random.(and more)
5.Concept of copy and Exploratory data analysis
Please share the list built-in functions of numpy. Thanks
Thanks for the videos. One change : Here, even if the elements are of not same data type, arrays can be created. So, they need not be of same data type.
import numpy as np
my_lst1=[1,2,3,'sdfs',5]
my_lst2=[2,3,4,5,6]
my_lst3=[9,7,'wow',8,9]
arr=np.array([my_lst1,my_lst2,my_lst3])
print(arr)
Yes it can be created..but the array should have common datatypes elements
Sir Thank you so much your playlist is very used full and it was very fast unsersting.
Following are taught in video:
-Array definition
- Numpy library import
- Array Shape and Reshape
- Array indexing
- Array Range
- Array linspace
- Array copy and broadcasting
- some functions in Array like np.ones, np.random.rand (random distribution), np.random.randn (normal distribution), np.random.randint etc.
time: 14:30
assigment asn:
array[1:,2:4]
Answer to print 1.) 3,4,5 @14:20
arr1[1:2,1:4 ]
2.) 4,5 and 6,8
arr1[1: , 2:4]
Guys, watch this playlist as well for Numpy revision
ua-cam.com/video/NVTWjd_UpzM/v-deo.html
Hi, for assignment @14:23... 1. arr[1:,2:4] & 2. arr[1,1:4]
your explanation is very good
I understand this chapter of numpy in 3 days there are lot to learn in 26 minutes.
Very nice explanation .Thanks
Highly insightful
this is one of the best playlist for learning python for data science, can you please tell me how can I practice without anaconda environment? As my PC does not support the environment.
done...heading to video number 8 :)
wow Sir. Love all your videos. Thank you !!
14:25
[1:,2:4]
[1:,1:4]
arr[1:2, 1:4]
output: array([[3, 4, 5]])
Thanks Krish
array of 45 68 ----- arr[1:,2:4]
array of 345 ----- arr[1,1:4]
Hi Krish, great effort. But i request you to improve the audio quality. Audio quality is not so good to follow the recording.
thank you.
First of all thank u so much for amazing tutorials on python. I have a question. When I do this,
my_lst=[1,2,3,4]
arr=np.array([my_lst])
arr
The output comes as array([[1,2,34]])
Is it two dimensional then?
Yes you are wrapping the my_list inside another list (using [ ]) in the line np.array. So it will create a 2d array with 1 row and 4 columns.
@@wajahatali4828 But if I do like this arr=np.array(my_lst) then output is [1 2 3 4] that means this is not 2D array?
Hi..In[105] -( val=2)..in this case we take "val" to do the operations like...arr*val, arr>val,.......correct me if i am wrong..Thank you Krish for your valuable teaching
I have a request to make : if you could provide a mind map of the things that we are learning in numpy, pandas, matplotlib and other python libraries that we are going to learn that would be really helpful.....getting to know all the things that we have to learn will be better for better understanding and remembering also.
looking forward to your reply.
Have u made one ?
Here are the functions mentioned in the video with examples:
* Creating arrays:
* `np.array()`: This function is used to create arrays from various data types like lists, tuples, etc. For example, `np.array([1, 2, 3, 4, 5])` creates a one-dimensional array with elements 1, 2, 3, 4, and 5.
* `np.zeros()`: This function creates an array filled with zeros. For example, `np.zeros((3, 4))` creates a two-dimensional array with 3 rows and 4 columns, all filled with zeros.
* `np.ones()`: This function creates an array filled with ones. For example, `np.ones((2, 2))` creates a two-dimensional array with 2 rows and 2 columns, all filled with ones.
* `np.random.rand()`: This function creates an array filled with random floats between 0 and 1. For example, `np.random.rand(2, 3)` creates a two-dimensional array with 2 rows and 3 columns, filled with random floats between 0 and 1.
* `np.random.randn()`: This function creates an array filled with random samples from the standard normal distribution. For example, `np.random.randn(3, 3)` creates a two-dimensional array with 3 rows and 3 columns, filled with random samples from the standard normal distribution.
* Indexing and slicing:
* `[]`: This operator is used to access elements of an array. For example, `arr[0]` accesses the first element of the array `arr`.
* `[:, :]`: This is used to access all elements of an array. For example, `arr[:, :]` accesses all elements of the array `arr`.
* `[start:stop:step]`: This is used to slice an array. For example, `arr[1:4:2]` selects elements from index 1 to index 4 (excluding index 4) with a step of 2.
* Mathematical operations:
* `+`, `-`, `*`, `/`: These operators are used to perform basic arithmetic operations on arrays element-wise. For example, `arr1 + arr2` adds the corresponding elements of arrays `arr1` and `arr2`.
* `x * arr`: This multiplies each element of the array `arr` by the scalar `x`.
* `arr.shape`: This attribute returns the shape of the array as a tuple of integers. For example, `arr.shape` might return `(3, 4)`, indicating that the array has 3 rows and 4 columns.
* Reshaping:
* `np.reshape()`: This function is used to reshape an array into a new shape. For example, `np.reshape(arr, (2, 6))` reshapes the array `arr` into a two-dimensional array with 2 rows and 6 columns.
* Other functions:
* `np.dot()`: This function is used to perform dot product or matrix multiplication between arrays.
* `np.sum()`: This function is used to calculate the sum of all elements in an array.
* `np.mean()`: This function is used to calculate the mean of all elements in an array.
These are just a few of the many functions available in NumPy. I hope this helps! -courtesy:GeminiAI
Done and Implemented !!
arr1[1:,2:4] for [4,5,6,8] and arr1[1:2,1:4] for [3,4,5]
What is the difference between arrays with the following shapes:
(x,) and (x,1)
Aren't both the same, i.e. an 1D array?
My bad, should have searched first. Found it:
stackoverflow.com/questions/38402227/numpy-why-is-there-a-difference-between-x-1-and-x-dimensionality
Concise explanation for those who are interested:
(x,) is a 1D array
(x,1) is a 2D array (!), the length of it's second element is 1. Also, Numpy does not have vectors or matrices, only n-dimensional arrays. That helps understand this better.
Awesome
How do I query if column 2 is grater than column 1 in three dimensional arry?
[(2,3,4),(1,4,6)] check if 3>2 & 4>1
Array[:, 0
#slice operation to print only [3,4,5] in second row
arr[1:2,1:4]
for indexing...
arr[1:,2:4]
arr[1:2,1:4]
Thanks a lot Sir ,
while creating a dimensional array, why does the shape indicates (5,0) and why not (1,5)?
(r,c) where r is rows and c is columns so it'll show you first no of rows and then columns
arr[1:3, 2:4]
array([[4, 5],
[6, 8]])
i havent studied statistics can i complete python playlist then move to statistics or have to compalsary study statistics first ?
awesome
Thank you
Assignment -
array[1:,2:4]
array[1:2,1:4]
correct!
Hi Krish,
I want to enrol in the course but I am not able to open the google form.
Could you please help me out.
Thanks
Priyadarshi
can we copy or replace number with srting vaue
hello sir i am getting an error " module 'numpy' has no attribute 'arrange'". how this is to be resolved??
should be arange()
Remove one r...... arange
hi Krish,
What's the difference between random.rand and random.random_sample ?
btw, these lectures are super helpful!! Thank you so much for this
Hi Krish, if the first list has 3 elements, 2nd has 4 elements and 3rd has 5 elements then still NumPy can create a multidimensional array?
Hi,please make a video on pandas,scipy.
Thanks
thanks
Hii Krish I am confused in .copy() concept
hello,sir,,is this concept of numpy enough to go through machine learning
print(arr[1:,3:])
print("-----Asssiment Tasks 1----")
print(arr[1:,2:4])
print("-----Asssiment Tasks 2----")
print(arr[1,1:4])
Sir, what is use of np.ones
But when I was trying to insert different data type into an array , it is accepting
Is these Jupyter notebook files uploaded somewhere
Sir can you please do project on mechanical engineering domain??
1.arr1=arr[1:,2:-1]
2.arr2=arr[1,1:-1]
18.07 when we print "arr" the output array is comma seperated but when we print "arr1" output is space seperated.. why?
when we use linspace the array is of shape 10 rows and 5 columns .. why? and why not 25 rows and 2 column or other?
sir what is the difference between range () and arange()
Hi all , is it easy to go directly to libraries than of inbuilt DS and functions concept , someone ans
Super
Great efforts sir
Is there any documents available for this particular playlist?
check on github
@@aditya_raj7827 can you pls share the link
Hey we're is the course curriculum details which I saw below one of ur videos. Also experience error in enrolling in ur course.
Online platform will be created. Dont worry it will be shared
Thanks Krish for these videos👏.I am a beginner in python and from bio science background.I am using pycharm for coding and found differences in syntaxes in pycharm than jupiter notebook.Why it is like that?kindly reply.
the diffrences will always be there, Just get your basics clear about the syntax and how the data should be approached. you can use either of them depending upon your requirements.
@@MrShree370 Many thanks for the advice🙏
sir can u plz help me..mai Pychm use kr rhe hu bt use me numpy import error show kr rha..mai google kiya kuch nhi mila information ki kaise thik kru..bs yahi bol rhe h problem aati h so plz help
I have a confusion.. when we execute copy() function and print arr and arr1 then why is the space difference between the two array?
Hello, How can We select 1st and 3rd row and 2nd and 4th column. Is it possible using numpy?
Sir i have exam tomorrow, r these numpy functions sufficient for my exam???
New threads comes in
:5: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
arr=np.array([lst1,lst2,lst3])
this want work anymore
arr[1:,2:4] =
array([[4, 5],
[6, 8]])
arr[1:2,1:4] = array([[3, 4, 5]])
I am not able select multiple cells using
shift+Down arrow
or shift+J.
Help will be appreciated.
Bro I find your tutorials are so good and useful. I have a question where to start...?. There are lot of video playlists like stats,Ml,python...Please suggest me to learn data science as a beginner ,first i have to go through stats or Machine learning...please suggest bro,
Start with my complete ML playlist
@@krishnaik06 I started with this bro but here in this video u said to watch Stats ,so i am a bit confused..whats first stats or ML
did you find how to start DS?
@@krishnaik06
import sympy as sp
import numpy as np
l1=[2,3,5,7]
a=np.array(l1)
print(type(a[1]))
print(sp.isprime(i for i in a))
why doesn't this programme giving me correct output?
how to check any array has prime NUMBERS using sympy methods?
Krish if [0:2,:] means it needs to retrieve all three rows right? But in this tutorial we are getting only first two rows as output . how? shall you kindly explain?
it means start from the 0th row until 2nd row i.e do not include 2nd row
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]
arr1 = arr.copy()
arr1[3:] = 67
print(arr1) for this code i'm getting errory , i replaced it with [67] the out put is only [1,2,3,67] how can i get all the remaining values as 67
I have one doubt np.arrange output not showing as 2 Dimensional brackets. Anyone?
done!
solution for the excercise - arr[1:,2:4]
Done
reshape after randint not working-after tab its not even popping in the list. can anyone help
Which type of mathematics is needed for ml