Skip to content

Commit 3e87285

Browse files
committed
create main.py file
1 parent fdde587 commit 3e87285

File tree

1 file changed

+22
-0
lines changed
  • dataAnalysis/notebook/visualize_data

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Standard library import
2+
import os
3+
4+
# Local application library
5+
from visualize_data import json_to_dataframe
6+
7+
8+
9+
def get_viz_json():
10+
# load json and transform into dataframe
11+
py_df = json_to_dataframe("py")
12+
js_df = json_to_dataframe("py")
13+
14+
15+
16+
# if __name__ == '__main__':
17+
# data = get_viz_json()
18+
19+
# # write data into json format
20+
# path = os.getcwd()
21+
# with open(f'{path}/dataAnalysis/notebook/data.json', 'w', encoding='cp949') as f:
22+
# f.write(data)

0 commit comments

Comments
 (0)