Pandas-With-Numpy-Zeros
Fri 14 November 2025
title: "Pandas with Numpy Zeros" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false
import numpy as np
import pandas as pd
dtype = [('Col1','int32'), ('Col2','float32'), ('Col3','float32')]
values = np.zeros(20, dtype=dtype)
index = ['Row'+str(i) for i in range(1, len(values)+1)]
df = pd.DataFrame …Category: data-wrangling
Read More