Personal highs and lows of the 366 days

Photo by Jeff Cooper on Unsplash

Like many people, I love a doing a yearly review in late December — taking the time to look back to see what went really well, what was abysmal, and make plans for the future. Since most of my time was spent finishing a Bootcamp program or looking for a job, the focus of this post will (mainly) be about that journey.

I spent the first half of 2020 completing the curriculum of an online Data Science bootcamp which included completing 2 projects and a Capstone. …

(Didn’t get me to where I was hoping to be though)

Photo by Artur Łuczka on Unsplash

For the third week now, I’ve been playing around with a training data set from Machine Hacker. The first week the focus was on creating a new column “fReviews” and working through some hiccups I encountered on that endeavor. Last week the focus was on creating another new column “iRatings”. As a refresh, the initial training set had 6,237 rows with 8 features and the target variable of “Price”. At this point, the data set is still 6,237 rows, but has two additional features:

A lesson in “read the fine print”!

Last week I chronicled my frustrating journey to add a column to a DataFrame and fill the new column by extracting a float value from a string of text from another column. This week, using the same DataFrame about books from Machine Hack that is 6237 entries with a target variable of ‘Price’ and 8 features, I decided to turn my attention to the ‘Ratings’ column.

Here’s a df.sample(3) of the DataFrame with the added column, ‘fReviews’, from last week:

Sample of 3 Entries from the Books DataFrame

My plan this week with the ‘Ratings’ column was to extract the number…

The devil is in the details

mural of Albert Einstein
Photo by Taton Moïse on Unsplash

My latest project has been to work on a hackathon challenge from Machine Hack. The first problem in the beginner’s list is to predict the price of a book. There is a training data set with 6, 237 rows of 8 book features; the challenge is to build a Machine Learning model so as to predict the price of a book. There is also a testing data set to test the model against. The 8 columns are: Title, Author, Edition, Reviews, Ratings, Synopsis, Genre, and BookCategory. …

Another “fun” challenge

Photo by Matt Hoffman on Unsplash

Do you remember middle school math (I do — it was my favorite class!) and finding the LCM (least common multiple) of two or more numbers? Classic 6th-grade stuff and it’s one of the “very hard” challenges on Edabyte. This is my take on how to solve the challenge of finding the LCM for a list of numbers. There are many different ways to solve this problem, but I used prime factorization. …

A Google search that went awry

Photo by Debby Hudson on Unsplash

Last week I start to google “Python Tur…” for my intended search of Python programming and a Turkey (for Thanksgiving) and autocorrect supplied me with Python Turtle results. Not quite what I was expecting….however, what is this? I had stumbled upon Turtle, a pre-installed Python library used to draw pictures, which I had never heard of or used, and took this stumble as an opportunity to learn something new and fun for the holiday season. …

A short tutorial on things I learned last week

Photo by Karim MANJRA on Unsplash

In Python, the modulo operator (signified as %) is one of seven arithmetic operators along with multiplication, division, addition, subtraction, exponentiation, and floor division. While reading through a blog on it, I learned some interesting facts about modulo that I’ll share here.

The basic application of the modulo is to represent the remainder after the division of one number — the numerator — by another number — the denominator.

5 % 2 is 1Two goes into five two times with a remainder of 1.

Just like regular math, there will…

I can’t get enough of these Python code challenges

A red apple
Photo by an_vision on Unsplash

This week I continued on my binge of coding challenges from Edabit. There’s something relaxing about getting lost in a fun code challenge for a little while. The latest teaser was solving Karaca’s Encryption Algorithm:

Make a function that encrypts a given input with these steps:Input: “apple”Step 1: Reverse the input: “elppa”Step 2: Replace all vowels using the following chart:a => 0e => 1i => 2o => 2u => 3# “1lpp0”Step 3: Add “aca” to the end of the word: “1lpp0aca”

Refactoring my function down from 9 lines to 1 line

Woman jumping for joy
Photo by Konstantin Planinski on Unsplash

Several months ago I wrote about my adventure of coding the Fibonacci number. I love the Fibonacci number — any number puzzle actually — so it was with great joy when I came across the Disarmium number. A number is a Disarmium number if the sum of the digits raised to the power of their respective position in the original number is equal. For example, 35 is not a Disarmium number:

3¹ + 5² equals 28 (3 + 25) and 28 does not equal 35

Another example, 89 is a…

Spooky fun with Python and Datetime

Face of a black cat
Photo by Hannah Troupe on Unsplash

It appears that Halloween and all its fun accouterments will be downsized this year in my neighborhood. However, in the spirit of the season I tried out this challenge from :

Given the month and year as numbers, return whether that month contains a Friday 13th.The return should be true or false, and here are the examples supplied:has_friday_13(3, 2020) ➞ Truehas_friday_13(10, 2017) ➞ Truehas_friday_13(1, 1985) ➞ False

Datetime and all its associated classes have been a sore spot of mine, so this felt like a perfect challenge to learn…

Annika Noren

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store