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

fix for non-pandas dataframe rendering #208

Merged
merged 3 commits into from
Mar 30, 2023
Merged

fix for non-pandas dataframe rendering #208

merged 3 commits into from
Mar 30, 2023

Conversation

shouples
Copy link
Collaborator

@shouples shouples commented Mar 30, 2023

Bug in the conversion logic that ended up casting non-pandas DataFrames directly to pandas via pd.DataFrame(obj) if they weren't the exact dtype that was being iterated over from get_renderable_types() items. This resulted in some oddness like transposed polars dataframes.

Update to the tests as well to make sure the number of rows and number of columns are different.

@shouples shouples requested a review from kafonek March 30, 2023 00:41
@shouples shouples self-assigned this Mar 30, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Merging #208 (fc342bb) into main (11461b5) will decrease coverage by 0.03%.
The diff coverage is 66.66%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
- Coverage   80.82%   80.80%   -0.03%     
==========================================
  Files          48       48              
  Lines        2493     2495       +2     
==========================================
+ Hits         2015     2016       +1     
- Misses        478      479       +1     
Impacted Files Coverage Δ
src/dx/utils/formatting.py 87.59% <66.66%> (-0.30%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11461b5...fc342bb. Read the comment docs.

@shouples shouples merged commit 720cab7 into main Mar 30, 2023
@shouples shouples deleted the djs/polars-update branch March 30, 2023 20:04
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.

3 participants