Categories
Data Science Programming Python

[Guide] Web Scraping 101: What you need to know and how to scrape with Python & Selenium Webdriver

The first step in building a data science model is: Collecting data.

For beginners in data science, it is easier to grab ready-to-use data files in CSV format from many available public data sources. If anyone is interested, I will list the sites for free publicly available in the future article.

This article is for anyone who would like to learn how to scrape website quickly and easily using the tool in Python you already know (Pandas). I will cover a little bit on the basics of web scraping before talking about the libraries.

Categories
Data Science Programming Python

[Python] How to update Anaconda Navigator with command line

I had a problem updating Anaconda Navigator with its UI and managed to solve by updating using the command line. So I wrote this article so it benefits other people and I can also come back if I face this problem in the future. Note that this blog post will be very very short, but very useful.

Categories
Data Science Programming Python

[Google Analytics API] How to get data from Google Analytics with Python in Jupyter Notebook (with tutorial file)

Today¬†I found an online tool that can get the stats of the published articles from Google Analytics. That’s how I got interested in Google Analytics API. As I am studying Data Science at the moment, knowing how to do web analytics would open up a lot of new possibilities.

Categories
Data Science Programming Python

How to install and switch Python version 2.7 <-> 3.5 in Anaconda

I recently had to switch to Python 2.7 since it is required for Algorithms and Data Structure unit. My current installation of Anaconda on my laptop is Python 3.5. This is the step by step solution to switch between two versions.

Categories
Data Science Programming SQL

How to import data from MySQL database into Pandas Data Frame

It is easy to load CSV data into Python’s Pandas Data Frame. I always think this is also the case for loading MySQL into Data Frame.¬†However, it turns out to be quite troublesome.

Categories
Data Science Programming Python

Basic Python OOP

This note is taken from InteractivePython.org website.

Categories
Data Science Programming Python

Basic Python for Data Structure

This note is about basic Python. Data type and syntaxes. From interactivepython.org