Dataype Downcasting
Fri 14 November 2025
title: "Datatype Downcasting" author: "Rj" date: 2019-04-24 description: "-" type: technical_note draft: false
import numpy as np
import pandas as pd
ds = pd.Series([1, np.nan, 3, 4, 5])
ds
0 1.0
1 NaN
2 3.0
3 4.0
4 5.0
dtype: float64
# ds = ds.astype('int …Category: data-wrangling
Read More