Skip to content

Commit

Permalink
Merge pull request #72
Browse files Browse the repository at this point in the history
Replace pandas ix attribute with iloc
  • Loading branch information
linwoodc3 authored Oct 30, 2023
2 parents fb3198f + a051e8c commit 7d6bc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdelt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def Search(self,
>>> results = gd.Search(['2016 Oct 10'], table='gkg')
>>> print(len(results))
2398
>>> print(results.V2Persons.ix[2])
>>> print(results.V2Persons.iloc[2])
Juanita Broaddrick,1202;Monica Lewinsky,1612;Donald Trump,12;Donald
Trump,244;Wolf Blitzer,1728;Lucianne Goldberg,3712;Linda Tripp,3692;
Bill Clinton,47;Bill Clinton,382;Bill Clinton,563;Bill Clinton,657;Bill
Expand Down Expand Up @@ -645,7 +645,7 @@ def Search(self,


if self.table == 'gkg' and self.version == 1:
results.columns = results.ix[0].values.tolist()
results.columns = results.iloc[0].values.tolist()
results.drop([0], inplace=True)
columns = results.columns

Expand Down

0 comments on commit 7d6bc85

Please sign in to comment.