Pandas Interview 7 - Create Dataframe with Null Values

preview_player
Показать описание
The notebook for this tutorial can be found here:

By the end of the tutorial, the viewers will be well prepared to create a dataframe from scratch using Numpy with null values.
Рекомендации по теме
Комментарии
Автор

Nice, This would do the same:

import numpy as np

array = np.random.rand(5, 2)
index = np.random.choice(array.size, 5, replace=False)
array.ravel()[index] = np.nan

array

prashanthreddy