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

Rewrite the stats tohist() method #606

Open
nwlandry opened this issue Oct 20, 2024 · 5 comments
Open

Rewrite the stats tohist() method #606

nwlandry opened this issue Oct 20, 2024 · 5 comments
Assignees
Labels
good first issue Good for newcomers improve Make an existing feature better

Comments

@nwlandry
Copy link
Collaborator

It would be nice if we made it easier to directly plot the output of tohist(), because now, it is quite complicated.

@nwlandry nwlandry added good first issue Good for newcomers improve Make an existing feature better labels Oct 20, 2024
@akskan160103
Copy link

Could you help me figure out where the tohist function is? I couldn't find it in the codebase.

@nwlandry
Copy link
Collaborator Author

Good call --- we haven't figured out to best document the stats interface (see #357), but here is the function. Thanks!

@maximelucas
Copy link
Collaborator

To add to to this, here's an example of how it's used:

import xgi
H = xgi.load_xgi_data("email-enron")
H.cleanup()

H.nodes.degree.ashist()

Which outputs the following pandas Dataframe:

image

@willcollins10
Copy link
Contributor

Hey I'm @akskan160103 partner. Another part of our final project is modifying some source code. Is there anyway we could claim this issue as well or have issue 632 (which we are already working on) be redefined to meet our requirement?

Happy Thanksgiving!

@nwlandry
Copy link
Collaborator Author

Hey I'm @akskan160103 partner. Another part of our final project is modifying some source code. Is there anyway we could claim this issue as well or have issue 632 (which we are already working on) be redefined to meet our requirement?

Happy Thanksgiving!

Done. You as well, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improve Make an existing feature better
Projects
None yet
Development

No branches or pull requests

4 participants