Код: Выделить всё
import pandas as pd
df = pd.read_csv('large_file.gz',
chunksize=1000000)
key = "find_this" # an element of column 1
for data in df:
if key in data['col1'].tolist():
found = data[data['col1'] == key]
break
print(found)
Подробнее здесь: https://stackoverflow.com/questions/790 ... lternative