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

كيفية استبدال قيم NaN بالصفر في NumPy


{
“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”: 3924,
“totalTokenCount”: 4332,
“thoughtsTokenCount”: 408
},
“modelVersion”: “gemini-3.7-flash-tiered”,
“responseId”: “bnOXatOiNIDkxN8P4JfmiQ4”
},
“traceId”: “186208ad1288cc29”,
“metadata”: {}
}

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

looti, M. (2026, سبتمبر 2). كيفية استبدال قيم NaN بالصفر في NumPy. عرب سايكلوجي. https://arabpsychology.com/how-to-replace-nan-values-with-zero-in-numpy/
looti, Mohammed. “كيفية استبدال قيم NaN بالصفر في NumPy.” عرب سايكلوجي, 2 سبتمبر 2026, https://arabpsychology.com/how-to-replace-nan-values-with-zero-in-numpy/.
looti, Mohammed. “كيفية استبدال قيم NaN بالصفر في NumPy.” عرب سايكلوجي. سبتمبر 2, 2026. https://arabpsychology.com/how-to-replace-nan-values-with-zero-in-numpy/.