We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b1a23 commit 8fc6982Copy full SHA for 8fc6982
braininventory/get.py
@@ -2,6 +2,23 @@
2
import pandas as pd
3
import json
4
from datetime import date
5
+import pandas as pd
6
+import urllib.request
7
+import matplotlib.pyplot as plt
8
+
9
10
+url = 'https://download.brainimagelibrary.org/inventory/daily/reports/today.json'
11
+file_path, _ = urllib.request.urlretrieve(url)
12
+df = pd.read_json(file_path)
13
+items = df.affiliation.unique()
14
+frequency = {}
15
16
+for item in items:
17
+ if item in frequency:
18
+ frequency[item] += 1
19
+ else:
20
+ frequency[item] = 1
21
+print(frequency)
22
23
def today():
24
"""
0 commit comments