Skip to content

Instantly share code, notes, and snippets.

@qharlie
Last active July 27, 2017 01:30
Show Gist options
  • Save qharlie/8fd16aedd7cb14dd2fb1a376610fc2d0 to your computer and use it in GitHub Desktop.
Save qharlie/8fd16aedd7cb14dd2fb1a376610fc2d0 to your computer and use it in GitHub Desktop.
import pandas as pd
import sys
loc = int(sys.argv[1])-1 if len(sys.argv) > 1 else -1
df = pd.read_csv("https://docs.google.com/spreadsheet/ccc?key=1xej5Nca2xUUtrZ1GCyPjFMqI9ZgNq_OhgnTxOOMQ2js&usp=sharing&output=csv")
class Keys:
NAME="Paper Name"
SUMMARY="High level summary"
STATE="Does it claim a State of the Art result?"
EXCITEMENT="Are you excited about this research paper?"
RATING="Put a rating between 1 and 5 for the paper."
TECHNIQUES="What techniques are used in the paper?"
NOTES="Any other notes"
LINK="Paper Url"
if loc >= 0:
paper = df.iloc[loc]
print("""Paper Name: \t\t\t{}\nState of the Art: \t\t{}\nExcitement Level: \t\t{}\nRating: \t\t\t{}\n\nSummary\n{}\n\nTechniques: \t\t\t{}\nNotes: \t\t\t{}\nLINK\t\t\t{}""".format(paper[Keys.NAME],paper[Keys.STATE],paper[Keys.EXCITEMENT],paper[Keys.RATING],paper[Keys.SUMMARY], paper[Keys.TECHNIQUES],paper[Keys.NOTES],paper[Keys.LINK]))
else:
for index,paper in df.iterrows():
print("""ID: [{}] , STARS({})\t\tName: {}\n\t\t\t""".format(str(index+1).zfill(2),paper[Keys.RATING],paper[Keys.NAME]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment