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

Better support to check pandas chains #347

Open
filipsch opened this issue Sep 7, 2018 · 0 comments
Open

Better support to check pandas chains #347

filipsch opened this issue Sep 7, 2018 · 0 comments

Comments

@filipsch
Copy link
Contributor

filipsch commented Sep 7, 2018

Up till now, pythonwhat does not bother with 'package specific' support for testing python scripts. The pandas package, however, is extremely commonly used across a wide range of Python courses, as it is the basis package for almost any data analysis with tabular data. Currently, you can test chains of pandas calls with pythowhat, but the support is far from great. There are no elegant ways to allow for both of these solutions, for example:

df.group_by('[b]').mean()
df.group_by('b').mean()

Or for these solutions

df = pd.DataFrame({'a': [1, 2, 3]})

# select the column a
df['a']
df.a

We should carefully think about additional functions we could add to the pythonwhat API to robustly check whether a student did the correct data manipulation operations. I have no idea what it could possibly look like, but the impact could be huge both in terms of CD productivity and SCT quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant