In [6]:
import pandas as pd

def get_comment_by_user(filename, username):
    comments = pd.read_csv(filename)
    # comments['date'] = comments['date'].apply(lambda d: datetime.datetime.strptime(d, '%Y-%m-%d').date())
    comments['date'] = pd.to_datetime(comments['date'])
    score_comments = comments[['date', 'score']].sort(['date'])
    comments[comments['user']==username]
    print(score_comments.describe())

get_comment_by_user('web/inheritant.csv', '윤유진')
get_comment_by_user('web/allrightlove.csv', '윤유진')
get_comment_by_user('web/knifeflower.csv', '윤유진')


              score
count  10440.000000
mean       9.466092
std        1.990349
min        0.000000
25%       10.000000
50%       10.000000
75%       10.000000
max       10.000000

[8 rows x 1 columns]