0

Working on getting data from Github but i saw that the append method is getting depricated. So now im a bit lost with the concat method.

TypeError: cannot concatenate object of type '<class 'github.PullRequest.PullRequest'>'; only Series and DataFrame objs are valid

This is my code

    pr_list = []
 for repo in org.get_repos():
for pr in repo.get_pulls(state='open'):
    pr_list.append(pr)

df_pulls = pd.DataFrame(columns=['repo', 'pulls', 'user' , 'created_at'])
for pull in pr_list:
 df_pulls = pd.concat(pr_list, ignore_index=False)

Formatting is now a bit messed up. Thank you in advance

Michael Butscher
  • 10,028
  • 4
  • 24
  • 25
Eindbaas
  • 23
  • 4

0 Answers0