Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python return value from single cell dataframe

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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #return #single #cell #dataframe
ADD COMMENT
Topic
Name
9+1 =