📌  相关文章
📜  如何在 pandas 数据框中选择单个单元格 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:00.241000             🧑  作者: Mango

代码示例2
import pandas as pd

data = ["thing"]
df = pd.DataFrame(data)

print(df.values)
print(df.values[0])
print(df.values[0][0]) #Get first element each time you want to remove the "[]" from a SINGLE value

>>>[['thing']]
>>>['thing']
>>>'thing'