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

Add new statistics function column_counts #2830

Merged
merged 1 commit into from Mar 22, 2019

Conversation

roed314
Copy link
Contributor

@roed314 roed314 commented Mar 21, 2019

This is a function on a statistics table that is used to determine the values taken by a column and the counts of rows with each value.

sage: db.ec_nfcurves.stats.column_counts('field_label')
{u'2.0.10691.1': 1L,
 u'2.0.11.1': 56587L,
 u'2.0.127285811.1': 1L,
 u'2.0.1879.1': 1L,
...
sage: db.ec_nfcurves.stats.column_counts('field_label',constraint={'number':1})
{u'2.0.10691.1': 1L,
 u'2.0.11.1': 30614L,
 u'2.0.127285811.1': 1L,
 u'2.0.1879.1': 1L,
...

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 60.512% when pulling 34fa7b4 on roed314:counts into f3bc9ee on LMFDB:master.

@JohnCremona
Copy link
Member

Testing now

@AndrewVSutherland AndrewVSutherland merged commit a6eb2f6 into LMFDB:master Mar 22, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants