How to measure the memory footprint of importing pandas?
<p>I am running Python on a low memory system.</p>

<p>I want to know whether or not importing pandas will increase memory usage significantly.</p>

<p>At present I just want to import pandas so that I can use the date_range function.</p>

<p>You can try to use the <code>info()</code> method of <code>pd.DataFrame</code>, this will give you an idea of the memory usage.</p>

<pre><code>In [56]: df = pd.DataFrame(data=np.random.rand(5,5), columns=list('ABCDE'))

In [57]: df
Out[57]: 
          A         B         C         D         E
0  0.229201  0.145442  0.214964  0.205609  0.182592
1  0.709232  0.714943  0.983360  0.635155  0.949378
2  0.741204  0.532559  0.646229  0.649971  0.686386
3  0.073047  0.382106  0.121190  0.721732  0.146408
4  0.904605  0.115031  0.377635  0.377796  0.005747

In [58]: df.info()
&lt;class 'pandas.core.frame.DataFrame'&gt;
RangeIndex: 5 entries, 0 to 4
Data columns (total 5 columns):
A    5 non-null float64
B    5 non-null float64
C    5 non-null float64
D    5 non-null float64
E    5 non-null float64
dtypes: float64(5)
memory usage: 280.0 bytes ## &lt;- check here!
</code></pre>

<p>I hope this helps!</p>

python pandas