#!/usr/bin/env python # coding: utf-8 # # Comparing Posts on Hacker News # # This project will look at a 20,000 randomly selected posts on Hacker News. Of those, posts that are in either the "Ask HN" or the "Show HN" categories will be analyzed to see wich subset generates the most comments and if there is a correlation between number of comments and the time the post is published. # The only selection criteria used was that all posts must have received comments. # In[1]: import csv from csv import reader opened_file = open('hacker_news.csv') read_file = reader(opened_file) data_file = list(read_file) data_file_header = data_file[0] hn = data_file[1:] print(data_file_header) print(data_file[:5]) # In[ ]: