Skip to content

Commit

Permalink
fix: use ix based pandas indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholsn committed Aug 25, 2014
1 parent 0725b34 commit fc6145c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions niquery/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _get_query_string(self, index):
Extracts the actual query text to execute, based on the query index.
"""
queries = utils.get_sparql_queries()
row = self.sparql_meta.iloc[index]
row = self.sparql_meta.ix[index]
base = os.path.basename(urlparse.urlsplit(row.downloadURL).path)
return queries[base]

Expand All @@ -59,7 +59,7 @@ def describe_query(self, index):
"""
Uses the index of a query to return a description
"""
return self.sparql_meta.iloc[index]
return self.sparql_meta.ix[index]

def execute(self, query_index, turtle_file=None, turtle_url=None):
"""
Expand Down

0 comments on commit fc6145c

Please sign in to comment.