Python Day 30 – finishing up strings

I finished the intro to strings portion of the Udemy course today! It mostly covered formatting stuffs… I learned: When using {} to call a field number there are a ton of little things one can do to format the output. For instance, to have a 4 spaces in the result use {:4} which canContinue reading “Python Day 30 – finishing up strings”

Python Day 26 – variables and operators

Continued my journey on this intro Udemy course. The videos I watched today mostly helped cement some contextual understanding of how Python works… I learned: A variable is created whenever you set “some text” = “anything else, like an int or str or float”. Also apparently in Python it’s a little bit more useful toContinue reading “Python Day 26 – variables and operators”

Python Day 25 – some new basics

Today I started an intro course in Udemy which turned out to be pretty useful as it’s easy to forget some of the basics. I learned: You can do math directly within print()! Before I was writing a = 5*5 print(a) #but now print(5*5) It feels obvious now but it’s these little things that makeContinue reading “Python Day 25 – some new basics”

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 21 – general research

Okay today was more of a general YouTube research on Python. I looked at Python Programmer ‘s video on Panda and learned how vital Panda is for data visualization and management. I haven’t used the package yet but I know that’s in the next part of the course I’m doing. I also started Siraj Raval’sContinue reading “Python Day 21 – general research”

Python Day 20 – some numpy workarounds in practice

Just did more practice problems today. I learned: I figured out another way to get all the even values of an array! Instead of using the for-if function from yesterday, my friend gave me the hint that I could mask out the values with a boolean. So I put “mask = arrfloat%2==0” and “arrfloat[mask]” andContinue reading “Python Day 20 – some numpy workarounds in practice”

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”