René's URL Explorer Experiment


Title: test_df_pivot tests failed at the system_prerelease session · Issue #341 · googleapis/python-bigquery-dataframes · GitHub

Open Graph Title: test_df_pivot tests failed at the system_prerelease session · Issue #341 · googleapis/python-bigquery-dataframes

X Title: test_df_pivot tests failed at the system_prerelease session · Issue #341 · googleapis/python-bigquery-dataframes

Description: After fixing failed tests mentioned #337, still have other tests failed: FAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[all_axis0] - AssertionError: Series.index are different FAILED tests/system/small/test_d...

Open Graph Description: After fixing failed tests mentioned #337, still have other tests failed: FAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[all_axis0] - AssertionError: Series.index are di...

X Description: After fixing failed tests mentioned #337, still have other tests failed: FAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[all_axis0] - AssertionError: Series.index are di...

Opengraph URL: https://github.com/googleapis/python-bigquery-dataframes/issues/341

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_df_pivot tests failed at the system_prerelease session","articleBody":"After fixing failed tests mentioned #337, still have other tests failed:\r\n\r\n```\r\nFAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[all_axis0] - AssertionError: Series.index are different\r\nFAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[any_axis0] - AssertionError: Series.index are different\r\nFAILED tests/system/small/test_dataframe.py::test_df_pivot[values2-int64_too-columns2] - AssertionError: DataFrame.iloc[:, 0] (column name=\"('int64_col', \u003cNA\u003e)\") are different\r\nFAILED tests/system/small/test_groupby.py::test_dataframe_groupby_analytic[cumprod] - AssertionError: DataFrame.iloc[:, 1] (column name=\"int64_col\") are different\r\nFAILED tests/system/small/test_dataframe.py::test_to_pandas_downsampling_option_override - assert 1.3427486419677734 == 1 ± 3.0e-01\r\nFAILED tests/system/small/test_series.py::test_series_add_prefix - AssertionError: Series.index are different\r\nFAILED tests/system/small/test_series.py::test_series_add_suffix - AssertionError: Series.index are different\r\nFAILED tests/system/small/test_series.py::test_groupby_window_ops[cumprod] - AssertionError: Series are different\r\nFAILED tests/system/small/test_series.py::test_string_astype_int - AssertionError: Series.index are different\r\n```\r\n\r\n@tswast mentioned, the distinction of RangeIndex vs Int64Index issue could be unblock by setting `check_index_type=False`: https://pandas.pydata.org/docs/reference/api/pandas.testing.assert_series_equal.html#pandas.testing.assert_series_equal\r\n\r\nBut the iloc errors may be real issues. The callstack is shown as below:\r\n\r\n```\r\n=================================== FAILURES ===================================\r\n__________________ test_df_pivot[values2-int64_too-columns2] ___________________\r\n\r\nscalars_dfs = (          bool_col                                          bytes_col  \\\r\nrowindex                                    ......  2038-01-19 03:14:17.999999+00:00\r\n8            False  ...                              \u003cNA\u003e\r\n\r\n[9 rows x 13 columns])\r\nvalues = ['int64_col', 'float64_col'], index = 'int64_too'\r\ncolumns = ['string_col']\r\n\r\n    @pytest.mark.parametrize(\r\n        (\"values\", \"index\", \"columns\"),\r\n        [\r\n            (\"int64_col\", \"int64_too\", [\"string_col\"]),\r\n            ([\"int64_col\"], \"int64_too\", [\"string_col\"]),\r\n            ([\"int64_col\", \"float64_col\"], \"int64_too\", [\"string_col\"]),\r\n        ],\r\n    )\r\n    def test_df_pivot(scalars_dfs, values, index, columns):\r\n        scalars_df, scalars_pandas_df = scalars_dfs\r\n    \r\n        bf_result = scalars_df.pivot(\r\n            values=values, index=index, columns=columns\r\n        ).to_pandas()\r\n        pd_result = scalars_pandas_df.pivot(values=values, index=index, columns=columns)\r\n    \r\n        # Pandas produces NaN, where bq dataframes produces pd.NA\r\n\u003e       pd.testing.assert_frame_equal(bf_result, pd_result, check_dtype=False)\r\n\r\ntests/system/small/test_dataframe.py:2294: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nleft = array([nan, nan, nan, nan])\r\nright = array([nan, nan, \u003cNA\u003e, nan], dtype=object), err_msg = None\r\n\r\n    def _raise(left, right, err_msg) -\u003e NoReturn:\r\n        if err_msg is None:\r\n            if left.shape != right.shape:\r\n                raise_assert_detail(\r\n                    obj, f\"{obj} shapes are different\", left.shape, right.shape\r\n                )\r\n    \r\n            diff = 0\r\n            for left_arr, right_arr in zip(left, right):\r\n                # count up differences\r\n                if not array_equivalent(left_arr, right_arr, strict_nan=strict_nan):\r\n                    diff += 1\r\n    \r\n            diff = diff * 100.0 / left.size\r\n            msg = f\"{obj} values are different ({np.round(diff, 5)} %)\"\r\n\u003e           raise_assert_detail(obj, msg, left, right, index_values=index_values)\r\nE           AssertionError: DataFrame.iloc[:, 0] (column name=\"('int64_col', \u003cNA\u003e)\") are different\r\nE           \r\nE           DataFrame.iloc[:, 0] (column name=\"('int64_col', \u003cNA\u003e)\") values are different (25.0 %)\r\nE           [index]: [-2345, 0, 1, 2]\r\nE           [left]:  [nan, nan, nan, nan]\r\nE           [right]: [nan, nan, \u003cNA\u003e, nan]\r\n\r\n.nox/system_prerelease/lib/python3.11/site-packages/pandas/_testing/asserters.py:684: AssertionError\r\n```","author":{"url":"https://github.com/chelsea-lin","@type":"Person","name":"chelsea-lin"},"datePublished":"2024-01-23T17:58:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/341/python-bigquery-dataframes/issues/341"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:260f5eed-e710-a75e-6efe-e90c96041ac5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC964:A79C2:145285E:1B6371E:6964A4ED
html-safe-noncea0aac1bb512f3f52d6492d2d24a1f20015ddaa2e341379e28f99ba7604e923df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTY0OkE3OUMyOjE0NTI4NUU6MUI2MzcxRTo2OTY0QTRFRCIsInZpc2l0b3JfaWQiOiIyOTE4NDczODA0NTk4NzgxMTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfa548769508b26e2f52cdb93e5f8c50a9f775f65228790c289c8476e92d3a6a4
hovercard-subject-tagissue:2096658717
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery-dataframes/341/issue_layout
twitter:imagehttps://opengraph.githubassets.com/768d797d32d6424c3bfd9a425084c259c0306af43b90d71276efd66e53715bf1/googleapis/python-bigquery-dataframes/issues/341
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/768d797d32d6424c3bfd9a425084c259c0306af43b90d71276efd66e53715bf1/googleapis/python-bigquery-dataframes/issues/341
og:image:altAfter fixing failed tests mentioned #337, still have other tests failed: FAILED tests/system/small/test_dataframe.py::test_dataframe_bool_aggregates[all_axis0] - AssertionError: Series.index are di...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechelsea-lin
hostnamegithub.com
expected-hostnamegithub.com
Nonebaa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-bigquery-dataframes git https://github.com/googleapis/python-bigquery-dataframes.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id667598363
octolytics-dimension-repository_nwogoogleapis/python-bigquery-dataframes
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id667598363
octolytics-dimension-repository_network_root_nwogoogleapis/python-bigquery-dataframes
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release842eff1d11f899d02b6b3b98fa3ea4860e64b34e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-bigquery-dataframes/issues/341#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery-dataframes%2Fissues%2F341
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery-dataframes%2Fissues%2F341
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-bigquery-dataframes
Reloadhttps://github.com/googleapis/python-bigquery-dataframes/issues/341
Reloadhttps://github.com/googleapis/python-bigquery-dataframes/issues/341
Reloadhttps://github.com/googleapis/python-bigquery-dataframes/issues/341
googleapis https://github.com/googleapis
python-bigquery-dataframeshttps://github.com/googleapis/python-bigquery-dataframes
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-dataframes
Fork 63 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-dataframes
Star 278 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-dataframes
Code https://github.com/googleapis/python-bigquery-dataframes
Issues 13 https://github.com/googleapis/python-bigquery-dataframes/issues
Pull requests 50 https://github.com/googleapis/python-bigquery-dataframes/pulls
Actions https://github.com/googleapis/python-bigquery-dataframes/actions
Projects 0 https://github.com/googleapis/python-bigquery-dataframes/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/googleapis/python-bigquery-dataframes/security
Please reload this pagehttps://github.com/googleapis/python-bigquery-dataframes/issues/341
Insights https://github.com/googleapis/python-bigquery-dataframes/pulse
Code https://github.com/googleapis/python-bigquery-dataframes
Issues https://github.com/googleapis/python-bigquery-dataframes/issues
Pull requests https://github.com/googleapis/python-bigquery-dataframes/pulls
Actions https://github.com/googleapis/python-bigquery-dataframes/actions
Projects https://github.com/googleapis/python-bigquery-dataframes/projects
Security https://github.com/googleapis/python-bigquery-dataframes/security
Insights https://github.com/googleapis/python-bigquery-dataframes/pulse
New issuehttps://github.com/login?return_to=https://github.com/googleapis/python-bigquery-dataframes/issues/341
New issuehttps://github.com/login?return_to=https://github.com/googleapis/python-bigquery-dataframes/issues/341
test_df_pivot tests failed at the system_prerelease sessionhttps://github.com/googleapis/python-bigquery-dataframes/issues/341#top
api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.https://github.com/googleapis/python-bigquery-dataframes/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
https://github.com/chelsea-lin
https://github.com/chelsea-lin
chelsea-linhttps://github.com/chelsea-lin
on Jan 23, 2024https://github.com/googleapis/python-bigquery-dataframes/issues/341#issue-2096658717
#337https://github.com/googleapis/python-bigquery-dataframes/issues/337
@tswasthttps://github.com/tswast
https://pandas.pydata.org/docs/reference/api/pandas.testing.assert_series_equal.html#pandas.testing.assert_series_equalhttps://pandas.pydata.org/docs/reference/api/pandas.testing.assert_series_equal.html#pandas.testing.assert_series_equal
api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.https://github.com/googleapis/python-bigquery-dataframes/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.