Mining Twitter Data in Python using Tweepy

Introduction I will be extracting twitter data using a python library called Tweepy. For a quick tutorial on tweepy read this post. In this post we will learn how to retrieve Twitter credentials for API access, then we will setup a Twitter stream using tweepy to fetch public tweets. After some preprocessing of tweets we … Continue reading Mining Twitter Data in Python using Tweepy

Introduction to Python Tweepy

Tweepy is an easy-to-use Python library for accessing the Twitter API. It provides complete interface to Twitter's RESTFul API methods. Installation Tweepy installation is quite simple. It can be installed using pip on Windows, Linux and MacOS. Tweepy supports Python 2.6 and 2.7, 3.3, 3.4, 3.5 & 3.6. To learn about how to install python and pip … Continue reading Introduction to Python Tweepy

Pandas Tutorial: Part 4 – DataFrames In-Depth Continued..

Introduction and Recap In last part of this series we looked at the most used datastructure of pandas i.e Pandas DataFrame. We discussed various basic dataframe operations, different ways to access and retrieve data from dataframe. We also looked at data munging operations like handling missing data, replacing data, shifting data. In this part we … Continue reading Pandas Tutorial: Part 4 – DataFrames In-Depth Continued..

Pandas Tutorial: Part 3 – DataFrames In-Depth

Introduction and Recap In last part of this tutorial series we discussed and learnt about the Pandas IO. We learnt how to read/write dataframe from/to many external data sources like SQL Databases, HTML, JSON, CSV files etc. In this part of series we will learn more about the most used data-structure used in Pandas i.e … Continue reading Pandas Tutorial: Part 3 – DataFrames In-Depth

Using Google API in Python: Part 1 – Introduction and Setup

Introduction In these tutorials we will be learning how to authenticate, connect and access various google product APIs like google drive api, gmail api etc.We will be using python for these tutorials using google's official api client library. In this post we will be learning how to install api client, getting OAuth credentials and setup … Continue reading Using Google API in Python: Part 1 – Introduction and Setup

Pandas Tutorial: Part 1 – Introduction and Data Structures

Introduction Pandas is an open source python library built upon Numpy, providing high performance and easy to use data structures for data analysis. Pandas is "the" library for data analysis in python. It is widely and extensively used by data scientist and data analyst in python ecosystem. The main advantage of pandas is its intuitive interface … Continue reading Pandas Tutorial: Part 1 – Introduction and Data Structures

Numpy Tutorial – Part 2 – IO & Datatypes

Introduction In last part of this series I did an introduction of Numpy and its various features. Then we looked at Numpy arrays. In this part I will discuss about Numpy Input &Output and its various datatypes. Numpy IO Working with Raw Binary Files We have mainly two functions to deal with IO for raw … Continue reading Numpy Tutorial – Part 2 – IO & Datatypes

Numpy Tutorial – Part 1 – Introduction & Numpy Array

Introduction NumPy is python package for scientific computing. It provides high performance and efficient operations on N-dimensional arrays. In this series I will go through different section of numpy and teach you about its various operations and their details. NumPy is heavily used for scientific computations and in data science. Numpy Arrays Numpy arrays are … Continue reading Numpy Tutorial – Part 1 – Introduction & Numpy Array

Hidden Features of Python

We will be exploring few hidden or less known/used features of python List Comprehension Argument Unpacking Chaining comparison operators c-style braces for-else Statement Ternary Operator with Statement enumerate() Relative Imports List Comprehension nums = [0,1,2,3,4,5,6,7,8,9] numsX2 = [value * 2 for value in nums] evenNums = [value for value in nums if value % 2 … Continue reading Hidden Features of Python

Installing Python 3 and Pip

Windows Using Installer Step 1: Download Installer from python.org Step 2: Follow Instructions and keep clicking next, both python and pip will be installed. Using Chocolatey Package Manager Step 1: Run Command Prompt as Administrator Step 2: Enter following commands choco install python choco install pip Debian/Ubuntu Enter following commands in terminal: sudo apt install python3-setuptools … Continue reading Installing Python 3 and Pip