-
Notifications
You must be signed in to change notification settings - Fork 44
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
getting B00001_001E when not requested #103
Comments
This is the intended behavior. To fix this, either:
I'd recommend going with option 1 in this case. |
Thank you for clarifying this @ronnie-llamado. Some thoughts on this. Since this is not really a bug, maybe we just update the examples (i.e., Notebooks) and docs, e.g.: Line 33 in fde2ad6
Line 42 in fde2ad6
I noticed that the Currently this note is in the code acknowledging some weirdness. Lines 288 to 291 in fde2ad6
|
@dfolch, do you have any suggestions on which string pattern would be the best (most intuitive) for examples/docs? Here's a quick snippet showing off some potential possibilities: import cenpy
conn = cenpy.remote.APIConnection("ACSDT5Y2017")
# unintended variables returned
print( '0', list( conn.varslike('B00002*').index ) ) # original
print( '' )
# intended variables returned
print( '1', list( conn.varslike('B00002.*').index ) ) # B00002.*
print( '2', list( conn.varslike('B00002\w+').index ) ) # B00002\w+
print( '3', list( conn.varslike('B00002').index ) ) # B00002
print( '4', list( conn.varslike('^B00002').index ) ) # ^B00002
print( '5', list( conn.varslike('^B00002\w+$').index ) ) # ^B00002\w+$ Returns:
Option 3 ( |
Your point is well taken that there is some mystery with Option 3. I didn't realize this query would return 166 items: Since Option 0 is not a great Option 3 covers most use cases and doesn't require people to even think about |
B00001_001E
is being returned when not requested.tucson = products.ACS(2017).from_place('Tucson, AZ', level='tract', variables=['B00002*'])
tucson
The text was updated successfully, but these errors were encountered: