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

كيفية استخدام دالة ()where في مكتبة Pandas (مع أمثلة)

دليل أكاديمي وتطبيقي شامل يشرح كيفية استخدام دالة where() في مكتبة 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”: 2798,
“totalTokenCount”: 4324,
“thoughtsTokenCount”: 1526
},
“modelVersion”: “gemini-3.7-flash-tiered”,
“responseId”: “pUCSat_tHve4nsEPpaTUmAI”
},
“traceId”: “a7c3d9fb9645a8ce”,
“metadata”: {}
}

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

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