mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
"question": {
|
||||
"questionId": "3062",
|
||||
"questionFrontendId": "2877",
|
||||
"categoryTitle": "Algorithms",
|
||||
"categoryTitle": "pandas",
|
||||
"boundTopicId": 2467481,
|
||||
"title": "Create a DataFrame from List",
|
||||
"titleSlug": "create-a-dataframe-from-list",
|
||||
"content": "<p>Write a solution to <strong>create</strong> a DataFrame from a 2D list called <code>student_data</code>. This 2D list contains the IDs and ages of some students.</p>\n\n<p>The DataFrame should have two columns, <code>student_id</code> and <code>age</code>, and be in the same order as the original 2D list.</p>\n\n<p>The result format is in the following example.</p>\n\n<p> </p>\n<p><strong class=\"example\">Example 1:</strong></p>\n\n<pre>\n<strong>Input:\n</strong>student_data:<strong>\n</strong><code>[\n [1, 15],\n [2, 11],\n [3, 11],\n [4, 20]\n]</code>\n<strong>Output:</strong>\n+------------+-----+\n| student_id | age |\n+------------+-----+\n| 1 | 15 |\n| 2 | 11 |\n| 3 | 11 |\n| 4 | 20 |\n+------------+-----+\n<strong>Explanation:</strong>\nA DataFrame was created on top of student_data, with two columns named <code>student_id</code> and <code>age</code>.\n</pre>\n",
|
||||
"translatedTitle": null,
|
||||
"translatedContent": null,
|
||||
"translatedTitle": "从表中创建 DataFrame",
|
||||
"translatedContent": "<p>编写一个解决方案,基于名为 <code>student_data</code> 的二维列表 <b>创建 </b>一个 DataFrame 。这个二维列表包含一些学生的 ID 和年龄信息。</p>\n\n<p>DataFrame 应该有两列, <code>student_id</code> 和 <code>age</code>,并且与原始二维列表的顺序相同。</p>\n\n<p>返回结果格式如下示例所示。</p>\n\n<p> </p>\n\n<p><strong class=\"example\">示例 1:</strong></p>\n\n<pre>\n<strong>输入:\n</strong>student_data:<strong>\n</strong><code>[\n [1, 15],\n [2, 11],\n [3, 11],\n [4, 20]\n]</code>\n<b>输出:</b>\n+------------+-----+\n| student_id | age |\n+------------+-----+\n| 1 | 15 |\n| 2 | 11 |\n| 3 | 11 |\n| 4 | 20 |\n+------------+-----+\n<b>解释:</b>\n基于 student_data 创建了一个 DataFrame,包含 student_id 和 age 两列。\n</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 0,
|
||||
"likes": 1,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -28,7 +28,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"17\", \"totalSubmission\": \"17\", \"totalAcceptedRaw\": 17, \"totalSubmissionRaw\": 17, \"acRate\": \"100.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"2.5K\", \"totalSubmission\": \"3.3K\", \"totalAcceptedRaw\": 2493, \"totalSubmissionRaw\": 3266, \"acRate\": \"76.3%\"}",
|
||||
"hints": [
|
||||
"Consider using a built-in function in pandas library and specifying the column names within it."
|
||||
],
|
||||
|
Reference in New Issue
Block a user