From e481f8620188acc529f236f387ded36480c3296a Mon Sep 17 00:00:00 2001 From: luderby <2339127037@qq.com> Date: Tue, 5 Nov 2024 18:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index 2d51154..f9a8173 100644 --- a/function.py +++ b/function.py @@ -5,7 +5,7 @@ id = "202210423223" name = "李顺潮" def load_data(filepath): - data = pd.read_csv(filepath, header=None) + data = pd.read_table(filepath, header=None, sep=' ') data.replace('?', np.nan, inplace=True) # Identify numeric columns