{ "metadata": { "name": "Visualize Data with MatPlotLib" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Matplotlib is a visualization library\n", "\n", "- [Matplotlib](http://matplotlib.sourceforge.net)\n", "- [Matplotlib Gallery](http://matplotlib.sourceforge.net/gallery.html)\n", "- [Matplotlib Examples](http://matplotlib.sourceforge.net/examples)" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Cut & paste code from gallery and press CTRL-ENTER" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "code", "collapsed": false, "input": [ "# Cut & paste code from an example and press CTRL-ENTER " ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "code", "collapsed": false, "input": [ "import pandas as pd \n", "# input file reference http://pandas.pydata.org/pandas-docs/dev/io.html\n", "rusers = pd.read_csv('data/rusers.csv')" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 1 }, { "cell_type": "code", "collapsed": false, "input": [ "rusers" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "
\n", "<class 'pandas.core.frame.DataFrame'>\n", "Int64Index: 6984 entries, 0 to 6983\n", "Data columns (total 13 columns):\n", "Id 6984 non-null values\n", "Reputation 6984 non-null values\n", "CreationDate 6984 non-null values\n", "DisplayName 6984 non-null values\n", "LastAccessDate 6984 non-null values\n", "WebsiteUrl 1141 non-null values\n", "Location 1727 non-null values\n", "AboutMe 1305 non-null values\n", "Views 6984 non-null values\n", "UpVotes 6984 non-null values\n", "DownVotes 6984 non-null values\n", "EmailHash 6983 non-null values\n", "Age 1093 non-null values\n", "dtypes: float64(1), int64(5), object(7)\n", "" ], "output_type": "pyout", "prompt_number": 3, "text": [ "