我有一个63 MB的csv文件和患者的血液测试。我无法获取DataFrame。上面写着:
Dtype警告:列(5,12,20,21,23,24,25,26,30,32,35,36,37,38,39,41,41,44,45,46,47,48,49,50,51,53,54,55,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91121123167169171173175181183189191193195207211213217221223227229231233235(具有混合类型。在导入时指定dtype选项或设置low_memory=False。hmg1=pd.read_csv("/home/fatih/伊兰迪里伦勒/sample1-1/csv"(
只需强制您的数据类型:
pd.read_csv(path_to_file, dtype=str)