<reponame>Dumbledore-on-Strive/goodreads<filename>analyse.py<gh_stars>0
import preprocess


anay_goup = df.groupby("original_publish_year")[
    'minmax_norm_ratings'].mean().round(decimals=2)
anay_goup.to_frame()

# #                                         The Best Book Author


def get_book_author(name, df):
    f = df[df.loc[:, 'author'] == name]
    m = f['minmax_norm_ratings'].max()
    return m


###
get_book_author('<NAME>', df)

import preprocess


anay_goup = df.groupby("original_publish_year")[
    'minmax_norm_ratings'].mean().round(decimals=2)
anay_goup.to_frame()

# #                                         The Best Book Author


def get_book_author(name, df):
    f = df[df.loc[:, 'author'] == name]
    m = f['minmax_norm_ratings'].max()
    return m


###
get_book_author('<NAME>', df)
# #                                         The Best Book Author ###