Re: Untitled

From Subtle Motmot, 4 Months ago, written in Plain Text, viewed 101 times. This paste is a reply to Untitled from Sexy Pheasant - go back
URL http://codebin.org/view/bcf633a5/diff Embed
Viewing differences between Untitled and Re: Untitled
import pandas as pd

hogwarts_points = pd.read_csv('/datasets/hogwarts_points.csv')
hogwarts_points hogwarts_points['faculty_name'] = hogwarts_points['faculty_name'].fillna('??????????')
print(hogwarts_points)
fillna(value='??????????')
print(f'????? ?????? ????????: {sum(hogwarts_points["points"])}') # ????? ???????? ??????? 'points'
print(f"????? ?????? ???????????: {hogwarts_points.groupby('faculty_name')['points'].sum().sum()}")# ???????????? ?? ??????? 'faculty_name'
print('????? ????????', hogwarts_points.groupby('faculty_name')['points'].sum().idxmax())
# ??????? ???????? ??????? 'points' ???? ??????????? ??????? sum()
# ? ????????? ????? sum() ? ??????????

Reply to "Re: Untitled"

Here you can reply to the paste above