Keeping up with Python and Colab basics

Queenie Pamatian
3 min readSep 18, 2020

Last Saturday (20200912) I got completely lost with our hands on activity with google colab. But with the help of the materials graciously provided to us by our in-house Junior data scientist, Shane, I was able to practice and to see some light. Let’s visit my journey.

This is where I stopped last Saturday. I got completely lost when we started using the github.

I am now following this link. https://docs.google.com/document/d/1Zxm03eDfWy8gDdyFtYRDr2Hf01rSLmKRz2Qv30vrMxU/edit#heading=h.dyvdx1vxlkac

Here is my github account :) link: https://github.com/ftwqueenie

Github/ftwqueenie

I already tried making a repository before and cloned it to my laptop, but I already forgotten how. So I have to make an ew one and I called it git-and-colab-basics.

I was able to successfully clone the repository in my laptop and followed the instructions.

repository

I copied my revised work of the activity last Saturday (filename: 200917_QDBP.ipnynb) so that I could add it in my repository.

I had a major problem with commit part as it kept on asking for my credentials and I got confused at first. It seems like my cmd doesn’t know my git hub acct yet. but with a little help, I was able to overcome it and successfully pushed the new file I added to the repository I made.

This is my “rush commit”

rush commit

I also cloned a data scientist cheat sheet in my laptop. Once I have time, i’ll be sure to check them out.

basics by CStorm

For Jupyter, it looked quite similar with the interface of colab. I just made a new notebook called Git Basics. I just redid the sample that we did last week and it worked the same even when I’m using a different tool.

Jupyter part 1
Jupyter part 2

So what I did is just to import GrabDataSeer.csv file in the same directory I’m currently working in and imported it in my code. I removed all the rows that contains null values (unallocated) and saved the new file as gitbasics_removedmissing.csv

working directory

So now I have the notebook, the original csv and the reworked csv in my directory.

Finally I recreated the steps using SPYDER. See my code below :)

Spyder code

Running it didn’t print anything.

Run

But when I checked the directory where I saved the file, there it is. i was a ble to modify the GrabDataSeer.csv once again.

results of Spyder

And that’s it for now. I’m kind of getting the gist of the basics. I am a bit anxious for what’s in store for me next class!

--

--