Skip to content

Output dataframe#30

Open
normaljosh wants to merge 8 commits intomasterfrom
output_dataframe
Open

Output dataframe#30
normaljosh wants to merge 8 commits intomasterfrom
output_dataframe

Conversation

@normaljosh
Copy link
Copy Markdown
Collaborator

Added functionality to output stats. The format is a list of lists, where each list within the lists has the name of the statistic as the 0th element, and the dataframe or series as the 1st element.

else:
return Categorical(data)

def output_df(statistics_list):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The std_output() function is in analysis/base.py, which is probably a good place to put this function.


def output_df(statistics_list):
df_list = []
for stat_data in statistics_list:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably do this with a dictionary instead of a list where the key is the title such as "Overall Statistics" or "Group Statistics". I've been using the {'name', DataFrame} output in a couple of other places in the codebase so it'll be more consistent.

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.

2 participants