> For the complete documentation index, see [llms.txt](https://lauradang.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lauradang.gitbook.io/notes/data-science/pandas/box-and-whisker-plots.md).

# Box And Whisker Plots

### Avoid the annoying `...`

```python
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
```

### Print table to terminal

```python
print(df.head())
```

### Read CSV

```python
df.read_csv("file.csv")
```

### Export to CSV

```python
df.to_csv("file.csv")
```

### Print a summary of the data

```python
df.describe()
```

### Show Columns

```python
df.columns
```

### Drop all missing values

```python
df = df.dropna(axis=0)
```

### Get dimensions of table

```python
df.shape
>>(rows, columns)
```

### Get number of instances per class

```python
print(dataset.groupby('class').size())
```

### Univariate Plotting

```python
# Box and Whisker Plots
dataset.plot(kind='box', subplots=True, layout=(2,2), sharex=False, sharey=False)

# histograms
dataset.hist()

plt.show()

```
