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

Transposing an empty dataframe does not give the same empty dataframe. #4

Open
mbramson opened this issue Oct 6, 2016 · 1 comment

Comments

@mbramson
Copy link
Contributor

mbramson commented Oct 6, 2016

Transposing an empty dataframe does not give a correct empty dataframe.

running this test:

  describe "transport/1" do
    test "empty Frame returns an empty Frame" do
      assert DataFrame.transpose(empty_frame()) == empty_frame()
    end
  end

gives this failed test:

  1) test transport/1 empty Frame returns an empty Frame (DataFrameTest)
     test/data_frame_test.exs:76
     Assertion with == failed
     code: DataFrame.transpose(empty_frame()) == empty_frame()
     lhs:  %DataFrame.Frame{columns: [], index: [], values: []}
     rhs:  %DataFrame.Frame{columns: [], index: [], values: [[]]}
     stacktrace:
       test/data_frame_test.exs:77: (test)

transposing an empty dataframe should give an empty dataframe exactly. This works in spirit, but the result is not correct.

@JordiPolo
Copy link
Owner

I've pushed version 0.3.1, should solve this issue.

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

No branches or pull requests

2 participants