summary_counts returning a list object #61
pihltd
started this conversation in
Bug Report
Replies: 3 comments 2 replies
-
|
@abradyGDIT do we need to update the docs? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Totally agree. The plan for the next release is to have it be more like the previous incarnation where it can display as tables, but we still wanted people to be able to access the underlying data, which was super hard before. Maybe in the next week or two you, Arthur and I can get together and talk about what a useful output would look like.
From: Todd Pihl ***@***.***>
Date: Friday, April 12, 2024 at 1:05 PM
To: CancerDataAggregator/CDA-HelpDesk ***@***.***>
Cc: Charbonneau, Amanda L ***@***.***>, Comment ***@***.***>
Subject: Re: [CancerDataAggregator/CDA-HelpDesk] summary_counts returning a list object (Discussion #61)
The result list itself seems a little clunky for what it's trying to represent. In other words, I can't really get to the count values without parsing each of the list elements, something that returning a dictionary would avoid. There's also
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
Please use caution with links, attachments, and any requests for credentials.
ZjQcmQRYFpfptBannerEnd
The result list itself seems a little clunky for what it's trying to represent. In other words, I can't really get to the count values without parsing each of the list elements, something that returning a dictionary would avoid. There's also what looks like pandas index numbers included in the returned results, and I'm not sure how useful those are in a list object.
—
Reply to this email directly, view it on GitHub<https://urldefense.us/v3/__https:/github.com/CancerDataAggregator/CDA-HelpDesk/discussions/61*discussioncomment-9098508__;Iw!!JRQnnSFuzw7wjAKq6ti6!1sVSXD8AVIyl2GVkt_72Khg2MzKPBsXBmLSVRLzJeNO8WV-xMFt2x_lGvOXmXwPL-IUmnaABziERAjfSP2wUhfu4gyBhLA$>, or unsubscribe<https://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AANDYQCMMJBHJMREYZJ7KTLY5AH35AVCNFSM6AAAAABF7G54FOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAOJYGUYDQ__;!!JRQnnSFuzw7wjAKq6ti6!1sVSXD8AVIyl2GVkt_72Khg2MzKPBsXBmLSVRLzJeNO8WV-xMFt2x_lGvOXmXwPL-IUmnaABziERAjfSP2wUhftaKRILsQ$>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Upon further review/education it turns out the function is returning a list of dataframes, not a list of strings. So updating the documentation would be sufficient to solve the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Running any query using the summmary_counts feature is (according to the documentation) supposed to return a dictionary. However, what actually gets returned is a list object that has extra bits of information. For example:
Query: summary_counts(table="subject", match_all=["file_format = bam"])Returned object:
That kind of looks like each entry is a line from a data frame, index included, but it's certainly not a dictionary
Beta Was this translation helpful? Give feedback.
All reactions