<jupyter_start><jupyter_text><jupyter_code>!pip install pandas --upgrade
import pandas as pd
student_por = pd.read_csv('student-por.csv')
student_por
student_ab = student_por.sort_values('absences', ascending = False).head(10)
student_ab
student_por['diff'] = student_por['G1'] - student_por['G2'] - student_por['G3']
student_por
total_studytime = student_por['studytime'].sum()
total_studytime
student_por.sample(5)
high_health = student_por[student_por.health < 2].sort_values('address', ascending = True)
high_health
calcul = student_por[student_por.Pstatus == 'A'][['G1', 'G2', 'G3']].sum()
calcul
total_travel_time = student_por['traveltime'].sum()
total_study_time = student_por['studytime'].sum()
total_travel_time_to_study_time = total_travel_time/total_study_time

total_travel_time_to_study_time<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1377245508982036, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 9.717948717948717, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '444675', 'license': 'MIT', 'n_tokens_mistral': 316, 'n_tokens_neox': 299, 'n_words': 44, 'path': 'Sofia_M_student.ipynb', 'repo_name': 'ValeriyMartsyshyn/-last_project', 'size': '835'}