Код: Выделить всё
thing1 = df[df['column1'] == 'Y']
thing2 = df[df['column2'] == 'Y']
thing3 = df[df['column3'] == 'Y']
thing4 = df[df['column4'] == 'Y']
Код: Выделить всё
none_of_the_things = df[(df['column1'] != 'Y') & (df['column2'] != 'Y') & (df[df['column3'] != 'Y']) & (df[df['column4'] != 'Y'])]
Код: Выделить всё
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 23.3 TiB for an array with shape (1855862, 1724897) and data type float64
python ./deepseek-v2.5-chart.py 11.91s user 2.81s system 105% cpu 13.996 total
Подробнее здесь: https://stackoverflow.com/questions/790 ... dataframes