Skip to main content

Beginners Guide for Using Google Colab for the First Time.

Beginners guide for using the Machine Learning and/or AI tools on google.colab

for a complete beginner: 

  1. AI and ML is all about analysing data so first you need to decide what
  2. kind of data you want to analyse. (I refer you back to my previous

  3. Basically do you want to analyse numerical data, text or images?

  4. On this occasion I’m going to keep it simple and create some data visualisations (graphs)

  5. You can get free open source data from this website kaggle.com

  6. I downloaded this file in .csv format:s-p-500-time-series-forecasting-with-prophet/input  

  7. This is when you can go to chatgpt and ask it to write the code for google colab to analyse the data in 
    the way you want for example you could ask it to write the code to create a dataframe from that data: 
     
  8. Drag and drop the csv file into google.colab
  9. Change the labels so they match the column names from the csv file:
  10. Run the code by pressing run, nothing bad will happen if you press run 
    (the worst case scenario is that it just won’t work!).
  11. I got something that looks like this:


  12. If you get an error ask the google AI gemini to explain it and help you fix it.
  13. Make sure the column names from the csv file match the column names in 
  14. the code (including the uppercase and lower case is correct).
    Once you have created a dataframe the hard work is done so you can now 
    ask gemini to make some graphs from it or go back to chat gpt and ask it to 
    make a graph from that dataframe.  
    I ended up with something like this:


  15. If you can get this far you know enough to use trial and error to experiment with 
    those tools and get it to display the data however you want. 

Comments

Popular Past Posts

Meet Cuthbert Baines: A Passionate and High-Achieving Professional Programmer

   Hello, and welcome to my corner of the internet! I'm Cuthbert Baines , a seasoned computer programmer with a passion for solving complex problems and building efficient, scalable software. With years of experience in the industry, I’ve honed my skills to not only deliver high-quality code but also to contribute meaningfully to projects that push the boundaries of technology. My Journey into Programming I’ve always had a deep curiosity about how things work, which led me to the world of computer science and programming. From my first lines of code to tackling challenging algorithms, the journey has been a rewarding one. Over time, my focus has expanded to include full-stack development , machine learning , and software architecture , but the heart of my work remains in solving real-world problems with clean, maintainable code. What Sets Me Apart? As a professional programmer, I pride myself on a few key principles that guide my work: Attention to Detail : Whether I’m...

A Beginner’s Guide to AI & Machine Learning Terms (No Tech Background Needed!)

📶💻💹 Artificial Intelligence (AI) and Machine Learning (ML) are terms that are used by a lot of people but do you know about the technical nuts and bolts of how they actually work? If you don't that's OK, — I’ve broken down some of the most common terms you might hear in the world of AI/ML into simple explanations anyone can understand. Plus, if you're using Google Colab , there's a built-in AI assistant called Gemini that can help you understand and write code but you need to know the right questions to ask it first.   1. NLP (Natural Language Processing) 🎤🎧 NLP is a branch of AI that helps computers understand and work with human language. Think of it as the technology behind things like chatbots, language translators, and voice assistants like Siri or Alexa. It allows machines to “read” and make sense of text or speech, just like we do. 2. BERT (Bidirectional Encoder Representations from Transformers) BERT is a special AI model developed by Google that ...

Reintroducing Cuthbert Baines For Anyone New In His Network

 Reintroducing Cuthbert Baines For New People In His Network As a recent IT graduate I'm new to the IT industry so I don't have the kinds of professional connections I need to be given a head-start, I'm one of the many new IT graduates applying for the relatively few  graduate jobs out there.  I am prioritising my personal and professional development right now.  I wish I had gone to University 20 years ago but for reasons outside my control I was written off at 16 so I missed out.  I don't give up easily up so I finally went to Hallam University when I was 35 and got a 2.1 in computing in 2025, now I'm willing to go the extra mile and do what needs to be done to make up for lost time!  I had to get a job when I was 18 so I've got the professionalism, life experience and wisdom of a (late) 30-something who's worked his entire adult life combined with the youthful intellectual energy of an explorer and a pioneer new to the IT sector with his own fresh innov...