Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_all_values() skipping columns #638

Open
xowgax opened this issue Dec 19, 2018 · 0 comments
Open

get_all_values() skipping columns #638

xowgax opened this issue Dec 19, 2018 · 0 comments

Comments

@xowgax
Copy link

xowgax commented Dec 19, 2018

Apologies for any mistakes, it's my first time writing an issue on GitHub.

I'm trying to get all the values from a sheet, but when using get_all_values() the returned data is missing certain columns which appear fine when I use .row_values(). I'm not sure if I'm doing something wrong or misunderstanding how get_all_values() works, but after a lot of testing, this feels like a bug to me.

I wrote the code below to compare the retrieved values:

row = sheet.row_values(1)
allRow = sheet.get_all_values()[0]
print (row)
print (allRow)
print ("Missing:",list(set(row) - set(allRow)))

['forwardFacingCName_raw', 'cOrder', 'cNumber', 'mCID', 'dma', 'dmaCode', 'mProName', 'entitlement_raw', 'vMapId', 'productionEntitlement', 'entitlement', 'SAMPLE ZIP', 'PLAYABLE_DMAS', 'forwardFacingCName', 'CID', 'ADD ;', 'ORIGINAL', 'BASIC also in EXTENDED', 'BASIC also in PREMIUM', 'EXTENDED also in PREMIUM', 'SB']

['cOrder', 'cNumber', 'mCID', 'dma', 'dmaCode', 'mProName', 'entitlement_raw', 'vMapId', 'productionEntitlement', 'entitlement', 'SAMPLE ZIP', 'PLAYABLE_DMAS']

Missing: ['ORIGINAL', 'BASIC also in PREMIUM', 'forwardFacingCName_raw', 'EXTENDED also in PREMIUM', 'CID', 'forwardFacingCName', 'ADD ;', 'SB', 'BASIC also in EXTENDED']

Environment info

Operating System: OSX Sierra 10.12.6
Python version: 3.7.0
gspread version: 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant