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

存量题库数据更新

This commit is contained in:
2023-12-09 18:42:21 +08:00
parent a788808cd7
commit c198538f10
10843 changed files with 288489 additions and 248355 deletions

View File

@@ -3,16 +3,16 @@
"question": {
"questionId": "3067",
"questionFrontendId": "2884",
"categoryTitle": "Algorithms",
"categoryTitle": "pandas",
"boundTopicId": 2467492,
"title": "Modify Columns",
"titleSlug": "modify-columns",
"content": "<pre>\nDataFrame <code>employees</code>\n+-------------+--------+\n| Column Name | Type |\n+-------------+--------+\n| name | object |\n| salary | int |\n+-------------+--------+\n</pre>\n\n<p>A company intends to give its employees a pay rise.</p>\n\n<p>Write a solution to <strong>modify</strong> the <code>salary</code> column by multiplying each salary by 2.</p>\n\n<p>The result format is in the following example.</p>\n\n<p>&nbsp;</p>\n<p><strong class=\"example\">Example 1:</strong></p>\n\n<pre>\n<strong>Input:\n</strong>DataFrame employees\n+---------+--------+\n| name | salary |\n+---------+--------+\n| Jack | 19666 |\n| Piper | 74754 |\n| Mia | 62509 |\n| Ulysses | 54866 |\n+---------+--------+\n<strong>Output:\n</strong>+---------+--------+\n| name | salary |\n+---------+--------+\n| Jack | 39332 |\n| Piper | 149508 |\n| Mia | 125018 |\n| Ulysses | 109732 |\n+---------+--------+\n<strong>Explanation:\n</strong>Every salary has been doubled.</pre>\n",
"translatedTitle": null,
"translatedContent": null,
"translatedTitle": "修改列",
"translatedContent": "<pre>\nDataFrame <code>employees</code>\n+-------------+--------+\n| Column Name | Type |\n+-------------+--------+\n| name | object |\n| salary | int |\n+-------------+--------+\n</pre>\n\n<p>一家公司决定增加员工的薪水。</p>\n\n<p>编写一个解决方案将每个员工的薪水乘以2来 <strong>修改</strong>&nbsp;<code>salary</code>&nbsp;列。</p>\n\n<p>返回结果格式如下示例所示。</p>\n\n<p>&nbsp;</p>\n\n<p><b>示例 1:</b></p>\n\n<pre>\n<strong>输入:\n</strong>DataFrame employees\n+---------+--------+\n| name | salary |\n+---------+--------+\n| Jack | 19666 |\n| Piper | 74754 |\n| Mia | 62509 |\n| Ulysses | 54866 |\n+---------+--------+\n<strong>输出:\n</strong>+---------+--------+\n| name | salary |\n+---------+--------+\n| Jack | 39332 |\n| Piper | 149508 |\n| Mia | 125018 |\n| Ulysses | 109732 |\n+---------+--------+\n<strong>解释:\n</strong>每个人的薪水都被加倍。</pre>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 0,
"likes": 1,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -28,7 +28,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"15\", \"totalSubmission\": \"15\", \"totalAcceptedRaw\": 15, \"totalSubmissionRaw\": 15, \"acRate\": \"100.0%\"}",
"stats": "{\"totalAccepted\": \"1.5K\", \"totalSubmission\": \"1.6K\", \"totalAcceptedRaw\": 1457, \"totalSubmissionRaw\": 1579, \"acRate\": \"92.3%\"}",
"hints": [
"Considering multiplying each salary value by 2, using a simple assignment operation. The calculation of the value is done column-wise."
],