Skip to content

Commit ecd8f75

Browse files
committed
new release on rsplit requires all parameters to be keywords (except the pattern). "StringMethods.rsplit except for the argument 'pat' will be keyword-only"
This commit fixes that
1 parent 7e9d0bd commit ecd8f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wikidataintegrator/wdi_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def get_distinct_value_props(cls, sparql_endpoint_url=None, wikibase_url=None, p
495495
"Continuing with no core_props")
496496
cls.DISTINCT_VALUE_PROPS[sparql_endpoint_url] = set()
497497
return None
498-
df.p = df.p.str.rsplit("/", 1).str[-1]
498+
df.p = df.p.str.rsplit("/", n=1).str[-1]
499499
cls.DISTINCT_VALUE_PROPS[sparql_endpoint_url] = set(df.p)
500500

501501
def init_data_load(self):

0 commit comments

Comments
 (0)