Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to get output of a column of a DataFrame?

How to get output of a column of a DataFrame?
Suppose, I have a DataFrame DF
which has columns: name, marks, phone in it.

How to het one of the column in python?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can get the output of any columns by:

For Name:

DF["name"]

or you can use:

DF.name

Like this, you can insert the name of any column in place of "name".

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading