From 1f1fbe044b804d2d1aa01119ad293c1a7d568c42 Mon Sep 17 00:00:00 2001 From: lyj182 <149088866+lyj182@users.noreply.github.com> Date: Thu, 26 Oct 2023 23:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20analysis.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- analysis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/analysis.py b/analysis.py index 87b1275..598d96e 100644 --- a/analysis.py +++ b/analysis.py @@ -8,6 +8,8 @@ sheet3 = workbook.parse('中央国家行政机关省级以下直属机构') sheet4 = workbook.parse('中央国家行政机关参照公务员法管理事业单位') # 找出包含环境科学的行 + +#123 def find_environment_rows(sheet): return sheet[sheet['专业'].str.contains('环境科学')]