Spaces:
Sleeping
Sleeping
Update title
Browse files- src/map_viz.py +2 -1
src/map_viz.py
CHANGED
@@ -9,6 +9,7 @@ import matplotlib.pyplot as plt
|
|
9 |
import numpy as np
|
10 |
import requests
|
11 |
import pandas as pd
|
|
|
12 |
|
13 |
import warnings
|
14 |
warnings.filterwarnings("ignore")
|
@@ -82,5 +83,5 @@ def calling_map_viz(counts_df):
|
|
82 |
ax.add_artist(collection)
|
83 |
ax.set_xlim([100, 1900])
|
84 |
ax.set_ylim([1800, 0])
|
85 |
-
ax.set_title(last_date + " " + last_time)
|
86 |
return fig
|
|
|
9 |
import numpy as np
|
10 |
import requests
|
11 |
import pandas as pd
|
12 |
+
import datetime
|
13 |
|
14 |
import warnings
|
15 |
warnings.filterwarnings("ignore")
|
|
|
83 |
ax.add_artist(collection)
|
84 |
ax.set_xlim([100, 1900])
|
85 |
ax.set_ylim([1800, 0])
|
86 |
+
ax.set_title(datetime.datetime.strptime(last_date, '%Y-%m-%d').strftime('%a, %d %B %Y') + " | " + last_time + " SGT", fontname = 'Georgia')
|
87 |
return fig
|