randmimc commited on
Commit
9ffa682
ยท
verified ยท
1 Parent(s): df334fe

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +92 -0
src/streamlit_app.py CHANGED
@@ -1,3 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # ํŒจํ‚ค์ง€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ
2
  import re
3
  import base64
@@ -43,6 +134,7 @@ st.markdown("""
43
  </style>
44
  """, unsafe_allow_html=True)
45
  df = pd.read_csv("https://huggingface.co/spaces/randmimc/mobility_condition/blob/main/chat_icon/test_data.csv", on_bad_lines='skip')
 
46
  print(len(df))
47
  chart_data = pd.DataFrame(np.random.randn(20, 3), columns=["a", "b", "c"])
48
  # ๋ฐ์ดํ„ฐ ์ƒํƒœ ๋ฐ ์กฐ์น˜ ์ƒํ™ฉ ํ‘œ์‹œ ํ•จ์ˆ˜
 
1
+ col = ['time',
2
+ 'ADC_ACC',
3
+ 'ADC_BATT',
4
+ 'ADC_VOLT1',
5
+ 'ADC_VOLT2',
6
+ 'Date',
7
+ 'ECU_AirconSW_State',
8
+ 'ECU_AtmosphericPressure',
9
+ 'ECU_AtmosphericTemperature',
10
+ 'ECU_BatteryVoltage',
11
+ 'ECU_ControllerTemperature',
12
+ 'ECU_CoolantMaxTemperature',
13
+ 'ECU_CoolantOverheatCount',
14
+ 'ECU_CoolantOverheatLamp_State',
15
+ 'ECU_DOCGasTemperature_After',
16
+ 'ECU_DOCGasTemperature_Before',
17
+ 'ECU_DPFDifferentialPressure',
18
+ 'ECU_DPFManualRegenSW_State',
19
+ 'ECU_DPFRegenFail_State',
20
+ 'ECU_DPFSoot',
21
+ 'ECU_EGRGasTemperature',
22
+ 'ECU_EngineBrakeSW_1_State',
23
+ 'ECU_EngineBrakeSW_2_State',
24
+ 'ECU_ExhaustBrakeSW_State',
25
+ 'ECU_ExhaustGasPressure',
26
+ 'ECU_ExhaustGasTemperature',
27
+ 'ECU_FaultCode',
28
+ 'ECU_FaultCode_DTCF',
29
+ 'ECU_FuelPressure',
30
+ 'ECU_FuelTemperature',
31
+ 'ECU_HCIDosing_State',
32
+ 'ECU_HCIFuelInjectionRate',
33
+ 'ECU_HCIFuelPressure',
34
+ 'ECU_HCIMode_State',
35
+ 'ECU_IntakeAirFlowRate_Actual',
36
+ 'ECU_IntakeAirPressure',
37
+ 'ECU_IntakeAirTemperature',
38
+ 'ECU_IntercoolerAirTemperature',
39
+ 'ECU_NeutralGearSW_State',
40
+ 'ECU_ParkingBrakeSW_State',
41
+ 'ECU_PowerModeSW_State',
42
+ 'ECU_VGTSpeed',
43
+ 'ECU_VehicleDistance_AfterDPFReqen',
44
+ 'ERR_CAN2_BusOff',
45
+ 'ERR_CAN2_RxCnt',
46
+ 'ERR_CAN2_TxCnt',
47
+ 'FD002A_FUNC_EmissionsCO2_Instance',
48
+ 'FD002A_FUNC_FuelConsumption_Instance',
49
+ 'FD002A_FUNC_FuelEfficiency_Instance',
50
+ 'FD002A_FUNC_VehicleDistance_Instance',
51
+ 'GPS_Altitude',
52
+ 'GPS_Azimuth',
53
+ 'GPS_Latitude',
54
+ 'GPS_Satellite',
55
+ 'GPS_Speed',
56
+ 'GPS_longitude',
57
+ 'SCR_CatalystNOx_After',
58
+ 'SCR_CatalystNOx_Before',
59
+ 'SCR_CatalystTemperature_Before',
60
+ 'SCR_DosingModuleDuty',
61
+ 'SCR_FaultCode',
62
+ 'SCR_FaultCode_DTCF',
63
+ 'SCR_SupplyModuleDuty',
64
+ 'SCR_SupplyModuleHeaterTemperature',
65
+ 'SCR_SupplyModuleTemperature',
66
+ 'SCR_UreaSolutionPressure',
67
+ 'SCR_UreaSolutionTankTemperature',
68
+ 'SystemTime',
69
+ 'VCU_AcceleratorPedalPosition',
70
+ 'VCU_AmberWarningLamp_State',
71
+ 'VCU_BrakeSW_State',
72
+ 'VCU_ClutchSW_State',
73
+ 'VCU_CoolantTemperature',
74
+ 'VCU_EGRValvePosition_Actual',
75
+ 'VCU_EGRValvePosition_Target',
76
+ 'VCU_EngineFuelRailPressure_Actual',
77
+ 'VCU_EngineFuelRailPressure_Request',
78
+ 'VCU_EngineFuelRate',
79
+ 'VCU_EngineOilPressure',
80
+ 'VCU_EngineOilTemperature',
81
+ 'VCU_EngineSpeed',
82
+ 'VCU_EngineThrottleValvePosition_Actual',
83
+ 'VCU_EngineTorque_Actual',
84
+ 'VCU_EngineTorque_DriverRequest',
85
+ 'VCU_EngineTorque_EngineRequest',
86
+ 'VCU_MalfunctionIndicator_State',
87
+ 'VCU_RedStopLamp_State',
88
+ 'VCU_VGTVainPosition_Actual',
89
+ 'VCU_VehicleDistance_Total',
90
+ 'VCU_VehicleSpeed_STD']
91
+
92
  # ํŒจํ‚ค์ง€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ
93
  import re
94
  import base64
 
134
  </style>
135
  """, unsafe_allow_html=True)
136
  df = pd.read_csv("https://huggingface.co/spaces/randmimc/mobility_condition/blob/main/chat_icon/test_data.csv", on_bad_lines='skip')
137
+ df.columns = col
138
  print(len(df))
139
  chart_data = pd.DataFrame(np.random.randn(20, 3), columns=["a", "b", "c"])
140
  # ๋ฐ์ดํ„ฐ ์ƒํƒœ ๋ฐ ์กฐ์น˜ ์ƒํ™ฉ ํ‘œ์‹œ ํ•จ์ˆ˜