giswqs commited on
Commit
8c57749
1 Parent(s): 3768e5d

Added sidebar info

Browse files
Files changed (3) hide show
  1. .github/FUNDING.yml +3 -0
  2. apps/housing.py +2 -1
  3. multiapp.py +16 -0
.github/FUNDING.yml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ github: giswqs
2
+ custom:
3
+ - buymeacoffee.com/giswqs
apps/housing.py CHANGED
@@ -161,7 +161,8 @@ def join_attributes(gdf, df, category):
161
  new_gdf = gdf.merge(df, left_on="STUSPS", right_on="STUSPS", how="outer")
162
  elif category == "national":
163
  if "geo_country" in df.columns.values.tolist():
164
- df["country"] = "United States"
 
165
  new_gdf = gdf.merge(df, left_on="NAME", right_on="country", how="outer")
166
  elif category == "metro":
167
  new_gdf = gdf.merge(df, left_on="CBSAFP", right_on="cbsa_code", how="outer")
 
161
  new_gdf = gdf.merge(df, left_on="STUSPS", right_on="STUSPS", how="outer")
162
  elif category == "national":
163
  if "geo_country" in df.columns.values.tolist():
164
+ df["country"] = None
165
+ df.loc[0, "country"] = "United States"
166
  new_gdf = gdf.merge(df, left_on="NAME", right_on="country", how="outer")
167
  elif category == "metro":
168
  new_gdf = gdf.merge(df, left_on="CBSAFP", right_on="cbsa_code", how="outer")
multiapp.py CHANGED
@@ -61,3 +61,19 @@ class MultiApp:
61
 
62
  st.experimental_set_query_params(**app_state)
63
  functions[titles.index(title)]()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  st.experimental_set_query_params(**app_state)
63
  functions[titles.index(title)]()
64
+
65
+ st.sidebar.title("Contribute")
66
+ st.sidebar.info(
67
+ "This an open source project and you are very welcome to **contribute** your awesome "
68
+ "comments, questions, resources and apps as "
69
+ "[issues](https://github.com/giswqs/streamlit-geospatial/issues) of or "
70
+ "[pull requests](https://github.com/giswqs/streamlit-geospatial/pulls) "
71
+ "to the [source code](https://github.com/giswqs/streamlit-geospatial). "
72
+ )
73
+ st.sidebar.title("About")
74
+ st.sidebar.info(
75
+ """
76
+ This app is maintained by Qiusheng Wu. You can learn more about me at
77
+ [wetlands.io](https://wetlands.io) or [GitHub.com](https://github.com/giswqs).
78
+ """
79
+ )