📜  如何在实际读取 csv 文件之前定义每列的 dtype - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:11.451000             🧑  作者: Mango

代码示例1
import pandas as pd 

# ...[.].csv = your .csv file 
# datatype = dtype you want to define.
read = pd.read_csv('......[.]csv',dtype={'name_column':'datatype'})