Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,16 +37,7 @@ def make_esgScoresPlot(df, cik):
|
|
| 37 |
to_display.sort_values('Year', inplace=True)
|
| 38 |
to_display.set_index('Year', inplace=True)
|
| 39 |
|
| 40 |
-
|
| 41 |
-
print(to_display)
|
| 42 |
-
print(to_display.index.dtype)
|
| 43 |
-
|
| 44 |
-
ax = sns.lineplot(data=to_display[['e_score', 's_score', 'g_score']] )
|
| 45 |
-
ax.xlabel('year')
|
| 46 |
-
ax.ylabel('score')
|
| 47 |
-
ax.title('ESG scores for ')
|
| 48 |
-
ax.legend(title='Legend', loc='upper left')
|
| 49 |
-
return ax
|
| 50 |
|
| 51 |
col = st.columns((1.5, 4.5, 2), gap='medium')
|
| 52 |
|
|
|
|
| 37 |
to_display.sort_values('Year', inplace=True)
|
| 38 |
to_display.set_index('Year', inplace=True)
|
| 39 |
|
| 40 |
+
return st.linechart(data=to_display[['e_score', 's_score', 'g_score']])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
col = st.columns((1.5, 4.5, 2), gap='medium')
|
| 43 |
|