Skip to content

Instantly share code, notes, and snippets.

@AI-MOO
Created March 27, 2022 14:15
Show Gist options
  • Save AI-MOO/a4013fdeb25eb7b26b85612580b7bbcb to your computer and use it in GitHub Desktop.
Save AI-MOO/a4013fdeb25eb7b26b85612580b7bbcb to your computer and use it in GitHub Desktop.
# حساب تعداد ونسبة كل فعالية في مجموعة التدريب
df_activity_count = y_train.value_counts().to_frame(name = 'Counts')
df_activity_count['percentage %'] = y_train.value_counts(normalize=True).round(4) * 100
df_activity_count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment