AK
Size: a a a
AK
V
A
ValueError: Cannot mask with non-boolean array containing NA / NaN values
AK
V
AT
ValueError: Cannot mask with non-boolean array containing NA / NaN values
A
OPERATION_URGENCY = ('плановая', 'экстренная','-1', 'НЕТ')
data = pd.read_csv()
data = data.fillna(-1)
for urgency in OPERATION_URGENCY:
data.loc[data['ВИД ГОСП.'].str.contains(urgency), 'ВИД ГОСП.'] = urgency
E
K
AT
OPERATION_URGENCY = ('плановая', 'экстренная','-1', 'НЕТ')
data = pd.read_csv()
data = data.fillna(-1)
for urgency in OPERATION_URGENCY:
data.loc[data['ВИД ГОСП.'].str.contains(urgency), 'ВИД ГОСП.'] = urgency
A
A
AT
A
SS
✞
$
A
AT
A
data[ANESTESYS_TYPES] = data.astype(str).apply(
lambda row: [1 if col in split_row(row, 'ВИД АНЕСТЕЗИИ', [':', ';', ',', ' ']) else 0 for col in ANESTESYS_TYPES],
axis=1,
result_type='expand')