Skip to content

Commit ca8a7c3

Browse files
authored
Fix add-data bug (#1267)
1 parent 663718b commit ca8a7c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

leafmap/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5528,7 +5528,8 @@ def classify(
55285528
or isinstance(data, pd.DataFrame)
55295529
or isinstance(data, pd.Series)
55305530
):
5531-
df = data
5531+
# copy user provided data to avoid pandas SettingWithCopy warnings
5532+
df = data.copy()
55325533
else:
55335534
try:
55345535
df = gpd.read_file(data)

0 commit comments

Comments
 (0)