运行 ❯
获取您的
Python 服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
import pandas as pd data = { "firstname": ["Sally", "Mary", "John"], "age": [50, 40, 30], "qualified": [True, False, False] } df = pd.DataFrame(data) print(df.get("firstname"))
0 Sally 1 Mary 2 John Name: firstname, dtype: object