Skip to content
Prev Previous commit
Next Next commit
Failing test case fix
  • Loading branch information
Neeratyoy committed Mar 3, 2020
commit 398eafb7f48b9904d27a45200f6ae3f65a54d8f5
6 changes: 5 additions & 1 deletion examples/30_extended/create_upload_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,12 @@
# Dataset is a pandas sparse dataframe
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could you please update this header to reflect the fact that pandas doesn't have this class any more.

# ====================================

# sparse_data = coo_matrix((
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please do not keep old code.

# [0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
# ([0, 1, 1, 2, 2, 3, 3], [0, 1, 2, 0, 2, 0, 1])
# ))
sparse_data = coo_matrix((
[0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
[1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0],
([0, 1, 1, 2, 2, 3, 3], [0, 1, 2, 0, 2, 0, 1])
))
column_names = ['input1', 'input2', 'y']
Expand Down