dbcodeio / public

The Power of Databases, The Convenience of VS Code: All in One Place
19 stars 1 forks source link

Table Stats/Summary #91

Open devpkr1 opened 1 week ago

devpkr1 commented 1 week ago

Hi Mike,

I have a suggestion to enhance the context menu for tables: it would be valuable to include an option labeled "Descriptive Statistics." When selected, this option would open a new tab in the main area displaying descriptive statistics for the table.

This feature would be especially helpful for data analysts and data scientists, providing quick insights directly from the table.

I've attached a screenshot for reference.

Image Image

Thank you for considering this suggestion!

Best regards, Pradeep

mikeburgh commented 6 days ago

Okay so that's some sort of break down of the columns from the table and their values for the various stat's.

Are there any common stats for this sort of thing ? It should be rather straight forward if it can be built up as a common SQL query

devpkr1 commented 5 days ago

Hi Mike,

Yes, you're exactly right! The goal is to provide a breakdown of key statistics, which would typically include:

As for percentiles (e.g., 25th, 50th, and 75th), we could make these optional to allow flexibility, as they are often insightful but may not be necessary in every case.

These statistics could be generated with a fairly straightforward SQL query, depending on the specific database in use. I believe having this available as a quick-access menu item would streamline our workflow, allowing users to explore table insights at a glance without needing to write queries themselves.

Let me know if you’d like more details on any of these stats, or if there’s anything specific I should look into!

mikeburgh commented 5 days ago

Thanks for that, I also noticed DuckDB has this built in.. https://duckdb.org/docs/guides/meta/summarize.html