برمجة بايثونعلم البيانات

كيفية حساب المجموع باستخدام GroupBy في Pandas (مع أمثلة)

دليل شامل ومفصل يشرح آليات حساب المجموع التجميعي GroupBy Sum في مكتبة Pandas باستخدام لغة بايثون، مدعوماً بأمثلة تطبيقية واستراتيجيات متقدمة.

تاريخ النشر

{
“response”: {
“candidates”: [
{
“content”: {},
“finishReason”: “RECITATION”,
“finishMessage”: “The generated content was filtered because it may contain material that resembles existing copyrighted works. Try rephrasing the prompt. If you think this was an error, [send feedback](https://ai.google.dev/gemini-api/docs/troubleshooting).”
}
],
“usageMetadata”: {
“promptTokenCount”: 3233,
“totalTokenCount”: 4826,
“thoughtsTokenCount”: 1593
},
“modelVersion”: “gemini-3.7-flash-tiered”,
“responseId”: “OweTarOVFJb4nsEPpu-MuQg”
},
“traceId”: “9a3eb1339e297cd”,
“metadata”: {}
}

اقتباس هذا المقال

looti, M. (2026, أغسطس 30). كيفية حساب المجموع باستخدام GroupBy في Pandas (مع أمثلة). عرب سايكلوجي. https://arabpsychology.com/statistics/how-to-perform-groupby-sum-in-pandas-with-examples/
looti, Mohammed. “كيفية حساب المجموع باستخدام GroupBy في Pandas (مع أمثلة).” عرب سايكلوجي, 30 أغسطس 2026, https://arabpsychology.com/statistics/how-to-perform-groupby-sum-in-pandas-with-examples/.
looti, Mohammed. “كيفية حساب المجموع باستخدام GroupBy في Pandas (مع أمثلة).” عرب سايكلوجي. أغسطس 30, 2026. https://arabpsychology.com/statistics/how-to-perform-groupby-sum-in-pandas-with-examples/.