**2020 Data Labs REU**

*Written by Sage Lichtenwalner, Rutgers University, June 8, 2020*

This notebook is designed as a kickoff activity to our 3-day Intro to Oceanographic Data Processing in Python series. The commands here are simple and provided mostly without context (which will be discussed in later notebooks) in order to highlight some of the advantages of using Python in Research Computing.

The code from this example was adapted from A Quick Introduction to Python develoed as part of our 2019 Summer workshop series.

In [0]:

```
2+2
```

Out[0]:

In [0]:

```
a = 42
```

In [0]:

```
a
```

Out[0]:

In [0]:

```
b = 'Life, The Universe, and Everything'
```

In [0]:

```
b
```

Out[0]:

In [0]:

```
import pandas as pd
```

In [0]:

```
url = 'https://marine.rutgers.edu/~sage/OOI_Data_Workshops/CP02PMUO_R9_ar24011.csv'
```

In [0]:

```
data = pd.read_csv(url)
data
```

Out[0]:

In [0]:

```
data.describe()
```

Out[0]:

In [0]:

```
# Let's plot the depth column
data['Depth'].plot();
```

In [0]:

```
# Now let's plot temperature
data['Temperature'].plot();
```

In [0]:

```
# Temperature vs. Depth
ax = data.plot(x='Temperature',y='Depth');
ax.invert_yaxis(); # Flip the y-axis
```

In [0]:

```
data.describe().to_csv('ctd_summary.csv');
```