Joins in Python- Merging, Appending and Aggregating Data

In this tutorial, we’ll look at different types of joins in Python used to merge two datasets.Then we’ll study how to aggregate data using the groupby function.

(more…)

Pandas Series and Pandas Dataframe – A Quick Tutorial

In this tutorial we’re going to look at  pandas data structures are and how to use them. We ‘ll start with an introduction to the pandas package and look at  why it is important. We will begin to understand what data structures provides – particularly Pandas Series and Pandas DataFrame – and illustrate how to perform basic tasks on these data structures.

(more…)

Data Visualization in Python – Bar Charts and Pie Charts

Data visualization skills are a key part of a of data analytics and data science and in this tutorial we’ll cover all the commonly used graphs using Python. We’ll start with a quick introduction to data visualization in Python and then look at python functions for a range of bars and charts.

(more…)

Scatter Plots, Heat Maps and Bubble Charts in Python

In the third of this series on data visitation tutorials, see part 1 and part 2, we’ll learn how to visually represent relationships between two or more variables and how to create those data visualisations in Python. Specifically, we’ll illustrate how to summarise data using scatterplots, heat maps bubble charts, trend lines and motion charts in Python. You can download the data sets for the practice exercises here.

(more…)

If Else in R – A Tutorial

In this tutorial we’ll look at if..else in R conditional statements

We will start with introduction to conditional statements and then cover different versions of an if statement in R.  The different versions are: the simple if statement, if-else statement, if else function and nested if-else statement. The concepts are similar to R programming.

(more…)

Read CSV in R – Importing data – A Tutorial

In this tutorial we’ll learn about read csv in R, importing and exporting data in R. We’ll start with importing csv and txt files in R using base R functions and then move on to different packages that are used for data management tasks. We’ll also learn how to handle missing observations. Finally we’ll take a brief look at how to import and export data from other software such as SAS, STATA and SPSS.

(more…)

Loops in R and alternatives – A Quick Tutorial

In this tutorial we’ll learn how to write Loops in R.  Like if-else statements, loops are commonly used in data science related programming. We’ll start with an introduction to loops and then cover the various types of loops – the for loop, the while loop and the repeat loop. 

(more…)

Install Packages in R : A Quick Tutorial

In this tutorial, we’ll learn how to install packages in R.

We’ll start with what R packages are and then learn how to install packages in R.  After that we’ll discuss how to use R packages and finally we’ll learn about some useful packages and commands.

(more…)

ggplot2 in R – A Tutorial

In this tutorial we’ll study data visualization using the ggplot2 package in R. The ggplot2 package is one of the most popular packages in data science.

First we’ll study how to construct various bar charts and graphs using ggplot2 and then we’ll study how to plot regression lines and trend lines in R.

(more…)