Skip to content

Commit beafd04

Browse files
authored
Moves to 2.0.0 of Pandas and 6.3.2 of rdflib fixing the iteritems deprecation issue. (#17)
1 parent e3f42ea commit beafd04

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rdfpandas/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def to_graph(df: pd.DataFrame, namespace_manager: NamespaceManager = None) -> Gr
3838
prefixes[prefix] = namespace
3939

4040
for (index, series) in df.iterrows():
41-
for (column, value) in series.iteritems():
41+
for (column, value) in series.items():
4242
# Matching unreserved, gen-delims and sub-delims with exception of "(", ")", "@", "[" and "]" from RFC 3986
4343
match = re.search('([\w\-._~:/?#!$&\'*+,;=]*)(\{(\w*)\})?(\[(\d*)\])?(\(([\w?:/.]*)\))?(@(\w*))?', column)
4444
if pd.notna(value) and pd.notnull(value):

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
nose
22
sphinx
33
sphinx_rtd_theme
4-
pandas>=1.2.0
5-
rdflib>=6.1.1
4+
pandas>=2.0.0
5+
rdflib>=6.3.2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
setup(
1313
name = 'rdfpandas',
14-
version = '1.1.5',
14+
version = '1.1.6',
1515
description = 'RDF support for Pandas',
1616
long_description = readme,
1717
author = 'Eugene Morozov',
1818
author_email = 'emorozov@gmail.com',
1919
url = 'https://github.com/cadmiumkitty/rdfpandas',
2020
license = 'MIT',
2121
packages = find_packages(exclude = ('tests', 'docs')),
22-
install_requires = ['pandas>=1.2.0', 'rdflib>=6.1.1']
22+
install_requires = ['pandas>=2.0.0', 'rdflib>=6.3.2']
2323
)
2424

0 commit comments

Comments
 (0)