in lineage by using the by library okay continuing on words let's look at some statistics with numpy so kind of the easiest things we might think about when we think about sorry statistics there's like men mean max etc so let's say we have this array so let's say we wanted to take the min of it you can just do NP dot min of stats that's gonna give us the one that you see there you do NP max of stats NUMBER_TOKEN you could also do it on like a row basis so if I sit actually C equals one that's going to give me the min of the first row and the men of the second row or maybe this is a better way to see it if I said axes equals NUMBER_TOKEN well it's going to give me all the values that are up top here because those are all the the mins so yeah you do all sorts of cool stuff with min to the max with this same thing with max let's say x equals NUMBER_TOKEN x equals NUMBER_TOKEN NUMBER_TOKEN & NUMBER_TOKEN is the biggest value NUMBER_TOKEN is the biggest value and the NUMBER_TOKEN is the biggest value you can also do in feed out some of stats if I do it just as is it's gonna sum up all of the elements in the matrix and then same thing I can do row or column so I actually equals NUMBER_TOKEN is going to add up all these terms going downwards next let's talk a little bit about reorganizing arrays so kind of the I would say the key method within reorganizing arrays so if I have the array I'm going to call it before and let's say that that is equal to this value right here so we have it before I'll print NUMBER_TOKEN out looks like that so let's say we wanted to instead of this shape that it currently is a two-by-four let's say we wanted to make it a I don't know a eight by one or something or maybe a four by two or a yeah all sorts of different things we could do I'll start with a by one so we have before and if we wanted to make it something else we can do after equals before dot reshape and then we pass in the new size we want it to have so if we wanted it to be an eight by one and pass it in like that and we can print out after as you can see it's an eight by one now I could also say maybe I wanted it to be a four by two so now you got that you could even pass it in as a two by two by two as long as that has the same amount of values like it's fair game so as you see two by two by two still works with the reshape what doesn't work is like if I wanted it to be two by three the values don't fit in so when you get errors but using that of shape it's usually because there's a mismatch between the shape you're trying to resize it to versus the original shape moving onwards let's look at vertical stacks so vertically stacking vectors or matrices and you know dimensions are important in vertical stack as well so vertical stacking of matrices let's say we had these two arrays if I wanted to stack you know one two three four on top of five six seven eight I can do NP dot V stack and I can pass in V
NO_SEGMENT_TOKEN