Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,13 @@ pts_new = map_coordinates(data, float_indices, # array at index coordinate
from scipy.integrate import quad
value = quad(func, low_lim, up_lim) # definite integral of python function
```

## Pandas

```python
import pandas as pd # import pandas
df = pd.read_csv("filename.csv") # read and load CSV file in a DataFrame
print(df[:2]) # print first 2 lines of the DataFrame
raw = df.values # get raw data out of DataFrame object
cols = df.columns # get list of columns headers
```