Skip to content

[FIX] table_to_frame - handle numeric columns with dtype=object#5474

Merged
VesnaT merged 1 commit into
biolab:masterfrom
PrimozGodec:table_to_frame-fix
Jun 14, 2021
Merged

[FIX] table_to_frame - handle numeric columns with dtype=object#5474
VesnaT merged 1 commit into
biolab:masterfrom
PrimozGodec:table_to_frame-fix

Conversation

@PrimozGodec
Copy link
Copy Markdown
Contributor

Issue

table_to_frame fails when array (usually metas) have dtype=object and column holds numeric values. Look newly-added test.

Description of changes

Use pd.isnull instead of np.isnan which correctly handle columns with dtype=object.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec force-pushed the table_to_frame-fix branch from c8f7cc2 to 3758d85 Compare June 7, 2021 19:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 7, 2021

Codecov Report

Merging #5474 (3758d85) into master (a78eaf3) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5474   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files         304      304           
  Lines       61652    61652           
=======================================
  Hits        53240    53240           
  Misses       8412     8412           

@VesnaT VesnaT merged commit f43d167 into biolab:master Jun 14, 2021
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