Hnim292 commited on
Commit
fc23910
·
verified ·
1 Parent(s): 3ceec59

Upload 4 files

Browse files
ev-charging-stations-in-finland-by-charg (1).png ADDED

Git LFS Details

  • SHA256: 568a99001f337b1d41ac6c945477c517aae1d00d72fa2413e5918216dc40214f
  • Pointer size: 131 Bytes
  • Size of remote file: 838 kB
ev_merged_analysis_readme.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Full EV Charging Station Infrastructure EDA
2
+ ## Overview about the dataset
3
+ - A merged dataset contains information about most ev charging stations in Finland using 2 different sources: from Fintraffic and from Google.
4
+ - For more information regarding the details about the pre-merged sets, the merging process, and overview about the current set, check out the other README file in the same branch.
5
+ ## Visualization
6
+ - Contains an interactable map and a simple histogram.
7
+ - Each dot on the map represents a station, the size of the dot correlates to the number of connectors that the station has. Hover on the dot gives information regarding its name, operator name, total connectors, municipality, total charging posts (evses), and max power capacity.
8
+ - Histogram shows top 20 cities with most stations.
9
+ - To interact with the map, run the code on your environment.
10
+ - The station is categorised into 3 tiers: slow, fast, and ultra fast, represented by 3 different colors. This is done through using the highest capacity connector's powert as the divider, with breakpoints given from official EU sources:
11
+ + <50kw: slow
12
+ + 50-149kw: fast
13
+ + from 150kw: ultra fast
14
+ - Intepretation:
15
+ + Map shows that the majority of stations only contain slow connectors, meaning that we do not necessarily have to waste budget on building the fastest charging station.
16
+ + Most slow stations are clustered in big cities such as Helsinki, Espoo, Tampere.
17
+ + Ultra fast stations are found scattering across all of Finland, especially in less urban areas. This is explained by drivers' stronger needs for faster charging speed in secluded areas, where not many stations are present.
18
+ + Throughout the highways and especially on intersection of them, fast and ultra fast stations are usually present.
19
+ + Histogram supports the interpretations, with big cities dominate and a majority of slow charging stations.
20
+ + Interestingly, most cities contain more ultra fast charging stations rather than just fast (also supported by the map). This could be interpreted as fast charging stations are more niche and usually does not fit the situations that people would use the charging stations.
21
+ ## Compatibility with other dataset
22
+ - Any dataset with clear coordinates that can be represented on the map is a possible candidate and should be analysed with this for a clearer understanding of what kind of places do current operators place their stations.
23
+ - Specifically, the point of interest dataset is highly compatible with this dataset and should also be represented on the map to analyse correlation.
24
+ ## Future steps
25
+ - Final cleaning:
26
+ + Removing redundant/unnecessary columns.
27
+ + Handling null values (columns such as userRating while interesting has 70% null entries).
28
+ - Combine with the POI dataset (and possibly other dataset with clear coordinates) for further analysis.
29
+
ev_merged_eda.py ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import numpy as np
3
+ import plotly.express as px
4
+ import geopandas as gpd
5
+ from shapely.geometry import Point
6
+
7
+ df = pd.read_csv('ev_stations_merged.csv')
8
+ print(df.head())
9
+ print(df.columns)
10
+ print(df.isna().sum())
11
+ print(df.describe())
12
+ print(df['place_key'].duplicated().sum())
13
+
14
+ municipalities = gpd.read_file('kuntarajat.2023.json')
15
+ geometry = [Point(xy) for xy in zip(df['lng'], df['lat'])]
16
+ gdf = gpd.GeoDataFrame(df, geometry=geometry, crs='EPSG:4326')
17
+ municipalities = municipalities.to_crs('EPSG:4326')
18
+ joined_df = gpd.sjoin(gdf, municipalities, how='left')
19
+ print(joined_df.columns)
20
+ df['municipality'] = joined_df['NAMEFIN']
21
+ print(df['municipality'].isna().sum())
22
+ df = df[df['municipality'].notna()].copy()
23
+ print(df.isna().sum())
24
+
25
+
26
+ def charger_speed_categorised(power):
27
+ if pd.isna(power):
28
+ return np.nan
29
+ elif power < 50:
30
+ return 'slow'
31
+ elif 50 <= power < 150:
32
+ return 'fast'
33
+ else:
34
+ return 'ultra_fast'
35
+
36
+ df['charger_speed_categorised'] = df['max_power_kw'].apply(charger_speed_categorised)
37
+
38
+ fig_map = px.scatter_map(
39
+ df,
40
+ lat='lat',
41
+ lon='lng',
42
+ color='charger_speed_categorised',
43
+ size='total_connectors',
44
+ size_max=30,
45
+ zoom=5,
46
+ center={'lat': 64.23, 'lon': 27.68},
47
+ hover_name='name',
48
+ hover_data={
49
+ 'municipality': True,
50
+ 'operator_name': True,
51
+ 'max_power_kw': True,
52
+ 'total_evses': True,
53
+ 'lat': False,
54
+ 'lng': False
55
+ },
56
+ map_style='open-street-map',
57
+ title='EV Charging Stations in Finland by Charging Speed'
58
+ )
59
+ fig_map.show()
60
+
61
+ municipality_summary = df.groupby('municipality').agg(
62
+ total_stations=('place_key','count'),
63
+ total_connectors=('total_connectors','sum'),
64
+ mean_power=('max_power_kw','mean')
65
+ ).sort_values('total_stations', ascending=False)
66
+
67
+ top_20_municipality = municipality_summary.index[:20].tolist()
68
+ df_top_20 = df[df['municipality'].isin(top_20_municipality)]
69
+
70
+
71
+ fig_hist_station = px.histogram(
72
+ df_top_20, x='municipality',
73
+ color='charger_speed_categorised',
74
+ category_orders={'municipality': top_20_municipality}
75
+ )
76
+ fig_hist_station.show()
77
+
78
+ print(df.describe())
79
+
plot-image.png ADDED

Git LFS Details

  • SHA256: 729e7e8ec6c033dbf00586dac0d586df32826e7d814ba2c405e5f4055cfa052e
  • Pointer size: 130 Bytes
  • Size of remote file: 62.4 kB