I’m done with the API module so I just went back to do some numpy practice problems to see if I even still remembered it haha. I learned: Just the little stuff, like when using np.arrange to use (parenthesis) and not [brackets], but when I’m making adjustments to an array to use [brackets]. Looking forward:Continue reading “Python Day 64 – practicing numpy and thoughts on the future”
Tag Archives: numpy
Python Day 24 – functions and datatypes
I started out today trying to do some HackerRank numpy array challenges, but quickly realized that I have a lot more to learn before I should do them. I understood the concept but the syntax was killing me. So I watched a basic YouTube video and learned a few lil things. I learned: Float64 andContinue reading “Python Day 24 – functions and datatypes”
Python Day 23 – (brackets) and inefficiency
Today is another short one due to finals. I did some more practice problems and attempted to figure out two small issues that have been bugging me. I learned: When I get the error ‘is not callable’ for numpy arrays that means I’m trying to call the array as a function, and I need toContinue reading “Python Day 23 – (brackets) and inefficiency”
Python Day 22 – practice makes humble
I just went over previous practice problems I’d already done and wow I did not realize how much I had forgotten. It definitely went faster but still… there’s much more work to do. I learned: To select a column in a numpy array is “arr[::1, 2::]”. And when you’re getting the type you just putContinue reading “Python Day 22 – practice makes humble”
Python Day 19 – I know what it does, but not how to do it
Still stuck on those practice problems… (for reference right now I’m trying to figure out how to only output all the even numbers of a numpy array) I learned: I now know what % does! It takes the remainder, or ‘modulo’, of a number. For instance 5%2 = 0.5. The function itself is also calledContinue reading “Python Day 19 – I know what it does, but not how to do it”
Python Day 18 – Practice Frustrations
Today I went through some practice problems in my course book. So I didn’t learn as many new things but rather found out how much I didn’t know about arrays in Numpy. I learned: That you can set an array type to float with np.float64(“array”) A little thing I learned: That instead of redefining arraysContinue reading “Python Day 18 – Practice Frustrations”
Python Day 17 – Slicing and Dicing with Numpy
Good morning y’all… I learned: That you can take slices of rows/columns (for instance matrix[0] is first row, matrix[1] is second row, and so on). You can also make a .copy of a slice rather than reference the original, although I’m not sure the significance of that quite yet. To only get odd or evenContinue reading “Python Day 17 – Slicing and Dicing with Numpy”
