Spaces:
Sleeping
Sleeping
Update storylines-app.py
Browse files- storylines-app.py +1 -0
storylines-app.py
CHANGED
@@ -16,6 +16,7 @@ import ast
|
|
16 |
# Load the CSV file
|
17 |
#df = pd.read_csv("emdat2.csv", sep=',', header=0, dtype=str, encoding='utf-8')
|
18 |
df = pd.read_csv("https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/ETOHA/storylines/emdat2.csv", sep=',', header=0, dtype=str, encoding='utf-8')
|
|
|
19 |
|
20 |
# grp=eval(df.iloc[0]["causal graph"])
|
21 |
#
|
|
|
16 |
# Load the CSV file
|
17 |
#df = pd.read_csv("emdat2.csv", sep=',', header=0, dtype=str, encoding='utf-8')
|
18 |
df = pd.read_csv("https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/ETOHA/storylines/emdat2.csv", sep=',', header=0, dtype=str, encoding='utf-8')
|
19 |
+
df = df.drop_duplicates(subset='DisNo.', keep='first') #I drop all duplicates for column "DisNo.", keeping the first occurrence
|
20 |
|
21 |
# grp=eval(df.iloc[0]["causal graph"])
|
22 |
#
|