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

fixed bug with rstrip #382

Merged
merged 5 commits into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ pip install datascience

This project adheres to [Semantic Versioning](http://semver.org/).


### v0.11.7
* Fixed bug where Table#hist was sometimes truncating the x-axis label.

### v0.11.6
* Fixes bug where error terms show up while plotting

Expand Down
3 changes: 2 additions & 1 deletion datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2586,7 +2586,8 @@ def prepare_hist_with_bin_column(bin_column):
# This code is factored as a function for clarity only.
weight_columns = [c for c in self.labels if c != bin_column]
bin_values = self.column(bin_column)
values_dict = [(w.rstrip(' count'), (bin_values, self.column(w))) for w in weight_columns]
values_dict = [(w[:-6] if w.endswith(' count') else w, (bin_values, self.column(w))) \
for w in weight_columns]
return values_dict

def prepare_hist_with_group(group):
Expand Down
3 changes: 1 addition & 2 deletions datascience/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = '0.11.6'

__version__ = '0.11.7'