Skip to content

Commit 345aece

Browse files
authored
Merge pull request #68 from gulfofmaine/standard-duped-indexes
Handle dupe indexes in the standard name view
2 parents 069323a + c7f001f commit 345aece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

by_standard_name.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import marimo
22

3-
__generated_with = "0.13.15"
3+
__generated_with = "0.14.0"
44
app = marimo.App(
55
width="medium",
66
app_title="NERACOOS Visualize and Compare - Data Type",
@@ -163,6 +163,8 @@ def _(platform_options, selected_ts_keys, unit):
163163
except KeyError: # weird caching
164164
pass
165165
# _df = _df.rename(columns={_ts["data_type"]["standard_name"]: _ts_name})
166+
if not _df.index.is_unique:
167+
_df = _df.loc[~_df.index.duplicated(keep="first")]
166168
_wide_dfs.append(_df)
167169

168170
wide_df = pd.concat(_wide_dfs, axis=1)

0 commit comments

Comments
 (0)