What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-29 03:27:13
get value of a cell in pandas 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']] >>&g... Add solution -
Python 2021-10-16 14:35:05
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']] >>&g... Add solution