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

@@ -6,17 +6,17 @@
"boundTopicId": null,
"title": "Fill Missing Data",
"titleSlug": "fill-missing-data",
"content": "<pre>\nDataFrame <code>products</code>\n+-------------+--------+\n| Column Name | Type |\n+-------------+--------+\n| name | object |\n| quantity | int |\n| price | int |\n+-------------+--------+\n</pre>\n\n<p>Write a solution to fill in the missing value as <code><strong>0</strong></code> in the <code>quantity</code> column.</p>\n\n<p>The result format is in the following example.</p>\n\n<p>&nbsp;</p>\n<pre>\n<strong class=\"example\">Example 1:</strong>\n<strong>Input:</strong>+-----------------+----------+-------+\n| name | quantity | price |\n+-----------------+----------+-------+\n| Wristwatch | 32 | 135 |\n| WirelessEarbuds | None | 821 |\n| GolfClubs | None | 9319 |\n| Printer | 849 | 3051 |\n+-----------------+----------+-------+\n<strong>Output:\n</strong>+-----------------+----------+-------+\n| name | quantity | price |\n+-----------------+----------+-------+\n| Wristwatch | 32 | 135 |\n| WirelessEarbuds | 0 | 821 |\n| GolfClubs | 0 | 9319 |\n| Printer | 849 | 3051 |\n+-----------------+----------+-------+\n<strong>Explanation:</strong> \nThe quantity for Toaster and Headphones are filled by 0.</pre>\n",
"content": "<pre>\nDataFrame <code>products</code>\n+-------------+--------+\n| Column Name | Type |\n+-------------+--------+\n| name | object |\n| quantity | int |\n| price | int |\n+-------------+--------+\n</pre>\n\n<p>Write a solution to fill in the missing value as <code><strong>0</strong></code> in the <code>quantity</code> column.</p>\n\n<p>The result format is in the following example.</p>\n\n<p>&nbsp;</p>\n<pre>\n<strong class=\"example\">Example 1:</strong>\n<strong>Input:</strong>+-----------------+----------+-------+\n| name | quantity | price |\n+-----------------+----------+-------+\n| Wristwatch | None | 135 |\n| WirelessEarbuds | None | 821 |\n| GolfClubs | 779 | 9319 |\n| Printer | 849 | 3051 |\n+-----------------+----------+-------+\n<strong>Output:\n</strong>+-----------------+----------+-------+\n| name | quantity | price |\n+-----------------+----------+-------+\n| Wristwatch | 0 | 135 |\n| WirelessEarbuds | 0 | 821 |\n| GolfClubs | 779 | 9319 |\n| Printer | 849 | 3051 |\n+-----------------+----------+-------+\n<strong>Explanation:</strong> \nThe quantity for Wristwatch and WirelessEarbuds are filled by 0.</pre>\n",
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 8,
"dislikes": 1,
"likes": 26,
"dislikes": 3,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"products\":[\"name\",\"quantity\",\"price\"]},\"rows\":{\"products\":[[\"Wristwatch\",32,135],[\"WirelessEarbuds\",null,821],[\"GolfClubs\",null,9319],[\"Printer\",849,3051]]}}",
"categoryTitle": "Algorithms",
"exampleTestcases": "{\"headers\":{\"products\":[\"name\",\"quantity\",\"price\"]},\"rows\":{\"products\":[[\"Wristwatch\",null,135],[\"WirelessEarbuds\",null,821],[\"GolfClubs\",779,9319],[\"Printer\",849,3051]]}}",
"categoryTitle": "pandas",
"contributors": [],
"topicTags": [],
"companyTagStats": null,
@@ -28,7 +28,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"283\", \"totalSubmission\": \"297\", \"totalAcceptedRaw\": 283, \"totalSubmissionRaw\": 297, \"acRate\": \"95.3%\"}",
"stats": "{\"totalAccepted\": \"8.9K\", \"totalSubmission\": \"12.5K\", \"totalAcceptedRaw\": 8866, \"totalSubmissionRaw\": 12477, \"acRate\": \"71.1%\"}",
"hints": [
"Consider using a build-in function in pandas library to fill the missing values of specified columns."
],
@@ -41,14 +41,14 @@
"__typename": "ArticleNode"
},
"status": null,
"sampleTestCase": "{\"headers\":{\"products\":[\"name\",\"quantity\",\"price\"]},\"rows\":{\"products\":[[\"Wristwatch\",32,135],[\"WirelessEarbuds\",null,821],[\"GolfClubs\",null,9319],[\"Printer\",849,3051]]}}",
"sampleTestCase": "{\"headers\":{\"products\":[\"name\",\"quantity\",\"price\"]},\"rows\":{\"products\":[[\"Wristwatch\",null,135],[\"WirelessEarbuds\",null,821],[\"GolfClubs\",779,9319],[\"Printer\",849,3051]]}}",
"metaData": "{\n \"pythondata\": [\n \"products = pd.DataFrame([], columns=['name', 'quantity', 'price']).astype({'name':'object', 'quantity':'Int64', 'price':'Int64'})\"\n ],\n \"database\": true,\n \"name\": \"fillMissingValues\",\n \"languages\": [\n \"pythondata\"\n ]\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [],
"enableRunCode": true,
"enableTestMode": false,
"enableDebugger": true,
"enableDebugger": false,
"envInfo": "{\"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"]}",
"libraryUrl": null,
"adminUrl": null,