Getting Started

In order to install GraphLab Create, please visit the installation page on in order to

  • register for a product key, and
  • install the graphlab-create Python package.

Once installed, you will be able to read or run the example code and datasets by copying code into your terminal. Throughout the User Guide we assume you have imported the package via

import graphlab

Sometimes it is useful shorthand to use gl instead of graphlab. This can be done via

import graphlab as gl

Quick start

Here are a few commands to get started.

Task code
Importing and parsing data
url = ''
songs = graphlab.SFrame.read_csv(url)
Computation on columns
Transforming columns
songs['num_words'] = songs['title'].apply(lambda x: len(x.split(' ')))
songs.groupby('artist_name', {'total': graphlab.aggregate.COUNT})
Create models
url = ''
x = graphlab.SFrame.read_csv(url)
m = graphlab.linear_regression.create
(x, target='price')