Skip to content

Commit afdfd81

Browse files
authored
Fix ee_to_df missing column bug (#1776)
1 parent 5ecb6d3 commit afdfd81

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

geemap/common.py

+3
Original file line numberDiff line numberDiff line change
@@ -8940,6 +8940,9 @@ def ee_to_df(ee_object, col_names=None, sort_columns=False, **kwargs):
89408940
if col_names is None:
89418941
col_names = property_names
89428942
col_names.remove("system:index")
8943+
for col in col_names: # add missing columns
8944+
if col not in df.columns.tolist():
8945+
df[col] = None
89438946
elif not isinstance(col_names, list):
89448947
raise TypeError("col_names must be a list")
89458948

geemap/geemap.py

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def __init__(self, **kwargs):
127127
self._USER_AGENT_PREFIX = "geemap"
128128
self.kwargs = kwargs
129129
super().__init__(**kwargs)
130+
131+
if kwargs.get("height"):
132+
self.layout.height = kwargs.get("height")
130133

131134
# sandbox path for Voila app to restrict access to system directories.
132135
if "sandbox_path" not in kwargs:

0 commit comments

Comments
 (0)