NaN vs. NA — understanding Pandas nullable types

preview_player
Показать описание
Why does Pandas change the dtype when you set something to NaN? What's pd.NA, and how is it different from the traditional np.NaN? And how can we enforce dtypes, rather than have them change automatically?

In this video, I explain what happens in NumPy, how Pandas is different, and how Pandas is changing to use nullable integer and string types. You'll also see how you can take advantage of these new types in your own data projects.

Рекомендации по теме
Комментарии
Автор

W. Been converting cols to floats when dealing w/ NaNs & limiting the # of decimal places. This will be a gamechanger. Thanks brotha. New subscriber here!

edgeprobability
Автор

Not sure how you make stuff like this so interesting! Amazing teaching!

somethingness
Автор

I appreciate your content. But would you enlarge the screen content? The latters are a bit too tiny for my bad eyes. But the way you're teaching is brilliant!

smarthumanism
Автор

Related with selenium: I have an csv file, some cells have NaN value. I want when there's no value (Nan) the driver doesn't fill in the web input(with 'Nan' or nan), just skip it to the next line code instruction.... how can I do that?

tigreonice
Автор

5:58 that's what I'm looking for

tigreonice
Автор

Are the videos uploaded in a certain order? I didn't find a playlist for pandas.

HGK