Question is how can I set value to the specific rows of just created column? I can do
df['New_column'] = np.nan
df['New_columns][df['Old_column'] > 20] = SPECIFIC_VALUE
But I cannot do it without predefining new column as nan:
df['New_columns][df['Old_column'] > 20] = SPECIFIC_VALUE ### That gives me error
Is there way to do such operation without "predefining"