More complex, we extract all lines containing a substring and we add the
header to the file to make it look like a dataframe. We do that usually
when we cannot load a big file into memory with
pandas due to the lack of memory. This
code relies on magic command
grep
and function
enumerate_grep.