Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via `{sandpaper}`
Source  : 829265e
Branch  : main
Author  : Tim Dennis <tdennis@library.ucla.edu>
Time    : 2024-10-29 18:15:07 +0000
Message : Merge pull request #142 from LibraryCarpentry/chennesy-patch-2

Update looping-data-sets.md
  • Loading branch information
actions-user committed Oct 29, 2024
1 parent b235ddc commit 6d9ebcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions looping-data-sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exercises: 10
If you recall from episode 06, the `pd.read_csv()` method takes a text string referencing a filename as an argument. If we have a list of strings that point to our filenames, we can loop through the list to read in each CSV file as a DataFrame. Let's print out the maximum values from the 'ytd' (year to date) column for each DataFrame.

```python
import pandas as pd
for filename in ['data/2011_circ.csv', 'data/2012_circ.csv']:
data = pd.read_csv(filename)
print(filename, data['ytd'].max())
Expand Down
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"episodes/functions.md" "499deb6ac29cdd4a00134176ef890616" "site/built/functions.md" "2024-06-17"
"episodes/libraries.md" "e1ea10719dd52d371c0a5a2bf03f687b" "site/built/libraries.md" "2024-06-17"
"episodes/for-loops.md" "a44b90e5f6f451c1659b7f877e0c0c4d" "site/built/for-loops.md" "2024-06-27"
"episodes/looping-data-sets.md" "56880c06991a04425c2cf8fe52ddbede" "site/built/looping-data-sets.md" "2024-06-17"
"episodes/looping-data-sets.md" "ff153b594bf9543fa2ed4890c4d3ef71" "site/built/looping-data-sets.md" "2024-10-29"
"episodes/pandas.md" "5f2461a95e56e8aa3aa6851f12d3d566" "site/built/pandas.md" "2024-06-17"
"episodes/conditionals.md" "b567ac5270b3dc82c4ed119870a0a890" "site/built/conditionals.md" "2024-06-17"
"episodes/writing-functions.md" "99171306646b8b63c66a493acef12e63" "site/built/writing-functions.md" "2024-06-17"
Expand Down

0 comments on commit 6d9ebcc

Please sign in to comment.