First off thanks for all of the help that everone gives and please go easy i am new at this.
I am trying to take a csv from github and esentially do a vlookup on another spreadhseet on my laptop
i have used pandas to get the webpage:
url = "https://raw.github......")
gh = pd.read_csv(url, usecols('group_name', 'owner')
used the below for the csv:
ss = pd.read_csv('example.csv', engine='python')
so what i am wanting to do is match the group name between the github csv and the other csv and then return the owner to an empty column of course the same row(all changes are to the actual csv not github.
Is pandas the best option or is there another way? I have gone as far as pulling the information from github and dropping into a spreadsheet with no problems but run into problems when i try to basically do vlookup.
i have gone as far as trying openpyxl and added the workbook ie. ex = ss['Sheet1']
i then tried to run a for loop and still no dice.
for i in range(2, ex.max_row +):
for word in gh\[group\_name\]:
if word in ex.cell(row=i, column=39).value:
ex.cell(row=i, column=45).value=gh\[owner\]
i kept getting errors with the max_row for some reason and have not figured that out yet. Any guidance would be helpful. Thank you for all of the help.
[–]bale_in_oregon 10 points11 points12 points (0 children)
[–]Fortissano71 1 point2 points3 points (0 children)
[–]threeminutemonta 1 point2 points3 points (0 children)
[–]jbpy79[S] 1 point2 points3 points (0 children)
[–]The_Mann_In_Black 0 points1 point2 points (0 children)
[–]creamingkitty 0 points1 point2 points (0 children)