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

py3.x: Change range() to np.arange() #16

Merged
merged 1 commit into from
May 24, 2018
Merged

py3.x: Change range() to np.arange() #16

merged 1 commit into from
May 24, 2018

Conversation

carlosdanielcsantos
Copy link
Collaborator

pandas DataFrame constructor doesn't support iterators and _prepare_info_plot_data is using the built-in function range to create a DataFrame.

In python2, range creates a list of values but in python3 it creates an iterator, resulting in a failure when calling target_plot, that calls _prepare_info_plot_data.

There are many solutions for this but the chosen one is to replace range for np.arange, creating a numpy array instead.

@SauceCat SauceCat merged commit 0d4b0c4 into master May 24, 2018
@SauceCat SauceCat deleted the fix-range-py3 branch May 25, 2018 01:48
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.

None yet

2 participants