lets say I have a dataframe like this:
A B C
1 NaN NaN
2 NaN NaN
And I have a numpy array like this np_array = ['ab', 'bc'], I want to make this array as a part of the dataframe rows like this:
A B C
1 'ab' 'bc'
2 NaN NaN
How can I do this most efficiently. Thanks=)
df.loc[df['A'].eq(1), ['B','C']] = np_arraydf.iloc[0, 1:] = np_array...df.fillna({c:v for c,v in zip(df.columns, np_array)}, limit=1)