Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
# some background about the data | |
# http://www.diamondse.info/ | |
?diamonds | |
summary(diamonds) | |
str(diamonds) | |
is.factor(diamonds$clarity) | |
is.factor(diamonds$color) | |
# clarity and color are already factor variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Tue May 19, 2015 | |
Reading tabular data in Python | |
DA ND Office hour | |
We will use the improved turnstile dataset and | |
compare several different methods for reading in the data. | |
There are 42650 rows in the dataset. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createVis(error, data, completion_type) { | |
// output error message, if any: | |
if (error) { console.log(error); } | |
// use a global variable to store parsed_data | |
// so that we have access to it from other functions | |
data_parsed = data; | |
// set a default completion type: | |
// if completion type is undefined, set it to female completion |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.