From e813683a7726f6f7f7d3a855458d0b341dc4cc50 Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Wed, 4 Aug 2021 21:34:22 -0400 Subject: [PATCH] fixing a missing comma --- 4-Classification/1-Introduction/translations/README.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4-Classification/1-Introduction/translations/README.zh-cn.md b/4-Classification/1-Introduction/translations/README.zh-cn.md index ae8d123b1..df585e3f5 100644 --- a/4-Classification/1-Introduction/translations/README.zh-cn.md +++ b/4-Classification/1-Introduction/translations/README.zh-cn.md @@ -158,7 +158,7 @@ Scikit-learn项目提供多种对数据进行分类的算法,你需要根据 def create_ingredient_df(df): ingredient_df = df.T.drop(['cuisine','Unnamed: 0']).sum(axis=1).to_frame('value') ingredient_df = ingredient_df[(ingredient_df.T != 0).any()] - ingredient_df = ingredient_df.sort_values(by='value', ascending=False + ingredient_df = ingredient_df.sort_values(by='value', ascending=False, inplace=False) return ingredient_df ```