<s> from __future__ import print_function <EOL> from pandas import * <EOL> import numpy as np <EOL> import os <EOL> from vbench . api import Benchmark <EOL> from pandas . util . testing import rands <EOL> from pandas . compat import range <EOL> import pandas . lib as lib <EOL> import pandas . _sandbox as sbx <EOL> import time <EOL> import psutil <EOL> pid = os . getpid ( ) <EOL> proc = psutil . Process ( pid ) <EOL> lst = SparseList ( ) <EOL> lst . append ( [ <NUM_LIT:5> ] * <NUM_LIT> ) <EOL> lst . append ( np . repeat ( np . nan , <NUM_LIT> ) ) <EOL> for _ in range ( <NUM_LIT> ) : <EOL> print ( proc . get_memory_info ( ) ) <EOL> sdf = SparseDataFrame ( { '<STR_LIT:A>' : lst . to_array ( ) } ) <EOL> chunk = sdf [ sdf [ '<STR_LIT:A>' ] == <NUM_LIT:5> ] </s>
