-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.py
33 lines (24 loc) · 1.01 KB
/
map.py
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
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
excel = pd.read_excel('lpr.xlsx', engine='openpyxl', sheet_name= 0, header= 2)
# print(excel['촬영시간'])
three = excel.loc[excel['촬영시간'] == '오후 3시'].to_dict()
five = excel.loc[excel['촬영시간'] == '오후 5시'].values
six = excel.loc[excel['촬영시간'] == '오후 6시'].values
eig = excel.loc[excel['촬영시간'] == '오전 8시'].values
# three_s, five_s, six_s, eig_s = {},{},{},{}
# for i in range(len(three)) :
# three_s[three[i,8] + '_' + three[i,2]] = three[i,14]
# for i in range(len(five)) :
# five_s[five[i,8] + '_' + five[i,2]] = five[i,14]
# for i in range(len(six)) :
# six_s[six[i,8] + '_' + six[i,2]] = six[i,14]
# for i in range(len(eig)) :
# eig_s[eig[i,8] + '_' + eig[i,2]] = eig[i,14]
# print(three_s,'\n', five_s,'\n', six_s,'\n', eig_s)
print(excel['신규 차량'])
new_car = excel['신규 차량'].to_list()
pre_car = excel['이전 촬영 차량']
plt.hist(new_car, bins=20)
plt.show()