From 0c967294f94bbfcda65f0fc6e4a4cbb23fbbfa48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Raczy=C5=84ski?= Date: Mon, 26 May 2025 11:25:46 +0200 Subject: [PATCH] DOC: Fix sparse and dense array memory usage comparison. --- doc/source/user_guide/sparse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst index 25bcb8bcc0c93..624086f7a8505 100644 --- a/doc/source/user_guide/sparse.rst +++ b/doc/source/user_guide/sparse.rst @@ -40,8 +40,8 @@ and in the Python interpreter. .. ipython:: python - 'dense : {:0.2f} bytes'.format(df.memory_usage().sum() / 1e3) - 'sparse: {:0.2f} bytes'.format(sdf.memory_usage().sum() / 1e3) + f'dense: {df.memory_usage().sum()} bytes' + f'sparse: {sdf.memory_usage().sum()} bytes' Functionally, their behavior should be nearly identical to their dense counterparts.