Skip to content

TST: Add test for apply cast types GH#9506 #53591

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

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

liang3zy22
Copy link
Contributor

val = targetDF["Numbers"].iloc[targetRow]
return val

resultDF = indexDF["Indices"].apply(retrieve, args=(uintDF,))
Copy link
Member

Choose a reason for hiding this comment

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

Could you structure this like

result = indexDF["Indices"].apply(retrieve, args=(uintDF,))
expected = pd.DataFrame(...)
tm.assert_frame_equal(result, expected)

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Jun 12, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 13, 2023
@mroeschke mroeschke merged commit 8b4f36c into pandas-dev:main Jun 13, 2023
@mroeschke
Copy link
Member

Thanks @liang3zy22

@liang3zy22 liang3zy22 deleted the gh9506 branch June 13, 2023 23:16
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame Apply unexpectedly casts types (uint64)
2 participants