-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkbook.qmd
More file actions
38 lines (31 loc) · 762 Bytes
/
Workbook.qmd
File metadata and controls
38 lines (31 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: "Adaptive Athletics Workbook"
subtitle: Womens' Basketball Statistics
author:
- name: Ryan Dennehy
affiliation:
- name: University of Arizona
format: html
toc: true
title-block-banner: true
---
```{python}
# | label: libraries
# | echo: false
# | message: false
import glob
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
```
```{python}
# | lable: data
# | echo: false
# read all CSVs in a folder
files = glob.glob("Data/*.csv")
df = pd.concat((pd.read_csv(f) for f in files), ignore_index=True)
# group by player name and sum all numeric columns
df_combined = df.groupby("First Name", as_index=False).sum(numeric_only=True)
```
# Here is a header denoting the first area
# Here is a second header