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

Fix #162. #164

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix #162. #164

wants to merge 2 commits into from

Conversation

curlette
Copy link

Add a quick way to fix tables to comply with probcomp/bayeslite@d1fbdac

@curlette
Copy link
Author

Due to probcomp/bayeslite#489 this doesn't really help with the issue of dealing with all-NaN columns when a population is created (as values may be nullified when the population is created, resulting in all-NaN columns that originally had a few values). This might still be a useful function though, so I'll leave the PR here.

"""
df = table_to_df(bdb, tablename)
df.dropna(axis=1, how='all', inplace=True)
drop_table_query = 'DROP TABLE IF EXISTS %s' %(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the IF EXISTS clause required here?

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