# DataFrame.column

danfo.DataFrame.**column**(column)

| Parameters | Type   | Description                           | Default |
| ---------- | ------ | ------------------------------------- | ------- |
| column     | String | The name of a column in the DataFrame |         |

## **Examples**

## **Select a single column from a DataFrame**

{% tabs %}
{% tab title="Node" %}

```javascript
const dfd = require("danfojs-node")
let data = { "Name": ["Apples", "App", "Banana", undefined],
            "Count": [NaN, 5, NaN, 10] ,
            "Price": [200, 300, 40, 250] }

let df = new dfd.DataFrame(data)

df.column("Name").print()

//Alternatively, you can retrieve columns by using the object property
df['Name'].print() //produces the same result as above
```

{% endtab %}

{% tab title="Browser" %}

```
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Output" %}

```
╔═══╤═══════════╗
║ 0 │ Apples    ║
╟───┼───────────╢
║ 1 │ App       ║
╟───┼───────────╢
║ 2 │ Banana    ║
╟───┼───────────╢
║ 3 │ undefined ║
╚═══╧═══════════╝

╔═══╤═══════════╗
║ 0 │ Apples    ║
╟───┼───────────╢
║ 1 │ App       ║
╟───┼───────────╢
║ 2 │ Banana    ║
╟───┼───────────╢
║ 3 │ undefined ║
╚═══╧═══════════╝
```

{% endtab %}
{% endtabs %}

To select more than one column with specific rows, you can use any of the following: [DataFrame.loc](https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc), [DataFrame.iloc](https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.iloc) or [DataFrame.query](https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.query)
