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

force chunk in concat_rows #632

Merged

Conversation

anthony-khong
Copy link
Contributor

The problem is described here, and this is to follow through with the suggestion here

@@ -978,7 +978,8 @@ defmodule Explorer.DataFrameTest do
%{a: [1], b: [4], c: [3.0], d: [0.5447047794019223]}

df2 =
DF.new(a: [1, 8, 3, nil], b: [4, 5, 2, nil])
DF.new(a: [1, 8, 3], b: [4, 5, 2])
|> DF.concat_rows(DF.new(a: [nil], b: [nil]))
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a separate test, specifically for testing concat_rows (if we don't have concat_rows tests, let's add a new one).

@anthony-khong
Copy link
Contributor Author

Hi @josevalim, thanks for the feedback!

I've separated the test for this. There are existing tests for concat_rows, but I've added a new section just because it feels slightly out of place with the mutate and explanation that it may panic. Please let me know if you'd like it done differently.

@josevalim josevalim merged commit ae52e87 into elixir-explorer:main Jun 29, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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