Skip to content
Advertisement

Pandas dataframe (getting one value without the index)

From a pandas dataframe, I want just the value and not the index.

JavaScript

Returns:

JavaScript

Adding .to_string()

JavaScript

Returns:

JavaScript

I do not want to loop, how can I just get:

JavaScript

Advertisement

Answer

Always check the docs for the method you are using:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement