mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
39 lines
922 B
HTML
39 lines
922 B
HTML
<pre>
|
||
DataFrame students
|
||
+-------------+--------+
|
||
| Column Name | Type |
|
||
+-------------+--------+
|
||
| student_id | int |
|
||
| name | object |
|
||
| age | int |
|
||
+-------------+--------+
|
||
|
||
</pre>
|
||
|
||
<p>编写一个解决方案,选择 <code>student_id = 101</code> 的学生的 name 和 age 并输出。</p>
|
||
|
||
<p>返回结果格式如下示例所示。</p>
|
||
|
||
<p> </p>
|
||
|
||
<p><strong>示例 1:</strong></p>
|
||
|
||
<pre>
|
||
<b>输入:</b>
|
||
+------------+---------+-----+
|
||
| student_id | name | age |
|
||
+------------+---------+-----+
|
||
| 101 | Ulysses | 13 |
|
||
| 53 | William | 10 |
|
||
| 128 | Henry | 6 |
|
||
| 3 | Henry | 11 |
|
||
+------------+---------+-----+
|
||
<b>输出:</b>
|
||
+---------+-----+
|
||
| name | age |
|
||
+---------+-----+
|
||
| Ulysses | 13 |
|
||
+---------+-----+
|
||
<strong>解释:
|
||
</strong>学生 Ulysses 的 student_id = 101,所以我们输出了他的 name 和 age。</pre>
|