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

BUG: fix describe_ function when count is not present #608

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

u3ks
Copy link
Collaborator

@u3ks u3ks commented Jun 17, 2024

a fix for a small issue with the mm.describe_* functions, where they expect a count to always be calculated

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.0%. Comparing base (4037c70) to head (2197a66).
Report is 46 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #608     +/-   ##
=======================================
+ Coverage   97.4%   98.0%   +0.6%     
=======================================
  Files         26      37     +11     
  Lines       4328    6078   +1750     
=======================================
+ Hits        4214    5956   +1742     
- Misses       114     122      +8     
Files Coverage Δ
momepy/functional/_diversity.py 96.5% <100.0%> (ø)
momepy/functional/tests/test_diversity.py 100.0% <100.0%> (ø)

@martinfleis martinfleis changed the title Describe fix BUG: fix describe_ function when count is not present Jun 17, 2024
@martinfleis martinfleis added the bug Something isn't working label Jun 17, 2024
@martinfleis martinfleis added this to the 0.8.0 milestone Jun 17, 2024
@martinfleis martinfleis merged commit 3d3faf7 into pysal:main Jun 17, 2024
14 checks passed
@martinfleis
Copy link
Member

Is this something that also needs to be included in Graph.describe?

@u3ks
Copy link
Collaborator Author

u3ks commented Jun 17, 2024

No, Graph.describe doesnt modify the output of pandas.agg, here we do to make it compatible with the old functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants