Okay, so I’ve been messing around with this “suns prediction” thing, and let me tell you, it’s been a journey. I started out knowing absolutely nothing, just a vague idea that I wanted to predict something related to the sun. I figured, why not try to predict sunspots? Seemed cool, and I’ve always been a bit of a space nerd.

First, I needed data. Lots of it. I spent a good chunk of time digging through websites. I finally stumbled upon a massive dataset of historical sunspot numbers. It was, like, hundreds of years of data. Talk about overwhelming!
Data Cleaning
Next, the real fun began: cleaning the data. Oh boy, was that a mess. There were missing values, weird outliers, and inconsistencies all over the place. I learned pretty quickly that data in the real world is rarely perfect. I used some simple techniques. I used averages to fill in missing values.
The Model Building Phase
After cleaning up my data, I was finally ready to try building a model. I decided to start simple and try a moving average, which is the way i choose for filling up my missing values.
- Downloaded and installed the necessary libraries (pandas, matplotlib, etc.). It was pretty straightforward, just a few commands.
- Imported my cleaned data into a pandas DataFrame. This made it super easy to work with.
- Calculated the moving average using a built-in pandas function. I experimented with different window sizes (like, how many days to average over) to see what worked best.
- Plotted the results to visualize the prediction. It was pretty basic, but it gave me a general idea of the trend.
And that’s it for my little suns prediction, I tried to use my simple way to made it, hope you guys like it, see ya.