1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 16:01:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -12,12 +12,12 @@
"translatedContent": "<pre>\nDataFrame students\n+-------------+--------+\n| Column Name | Type |\n+-------------+--------+\n| student_id | int |\n| name | object |\n| age | int |\n+-------------+--------+\n</pre>\n\n<p>在 <code>name</code> 列里有一些具有缺失值的行。</p>\n\n<p>编写一个解决方案,删除具有缺失值的行。</p>\n\n<p>返回结果格式如下示例所示。</p>\n\n<p>&nbsp;</p>\n\n<p><b>示例 1:</b></p>\n\n<pre>\n<strong>输入:\n</strong>+------------+---------+-----+\n| student_id | name | age |\n+------------+---------+-----+\n| 32 | Piper | 5 |\n| 217 | None | 19 |\n| 779 | Georgia | 20 |\n| 849 | Willow | 14 |\n+------------+---------+-----+\n<strong>输出:\n</strong>+------------+---------+-----+\n| student_id | name | age |\n+------------+---------+-----+\n| 32 | Piper | 5 |\n| 779 | Georgia | 20 | \n| 849 | Willow | 14 | \n+------------+---------+-----+\n<b>解释:\n</b>学号为 217 的学生所在行在 name 列中有空值,因此这一行将被删除。</pre>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 0,
"likes": 1,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false}",
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false, \"cangjie\": false}",
"topicTags": [],
"companyTagStats": null,
"codeSnippets": [
@@ -28,7 +28,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"1.4K\", \"totalSubmission\": \"2.4K\", \"totalAcceptedRaw\": 1408, \"totalSubmissionRaw\": 2376, \"acRate\": \"59.3%\"}",
"stats": "{\"totalAccepted\": \"4.5K\", \"totalSubmission\": \"7K\", \"totalAcceptedRaw\": 4527, \"totalSubmissionRaw\": 6998, \"acRate\": \"64.7%\"}",
"hints": [
"Consider using a build-in function in pandas library to remove the rows with missing values based on specified data."
],
@@ -40,7 +40,7 @@
"judgeType": "large",
"mysqlSchemas": [],
"enableRunCode": true,
"envInfo": "{\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"]}",
"envInfo": "{\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,