📜  python 从单个单元格数据帧返回值 - Python 代码示例

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

代码示例1
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'