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

datatable NaN columns with fill #2

Open
CagtayFabry opened this issue Nov 17, 2022 · 0 comments
Open

datatable NaN columns with fill #2

CagtayFabry opened this issue Nov 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@CagtayFabry
Copy link
Owner

There is a bug in the 1.0.0 version of datatable with unequal column layouts
This breaks with many export formats

1.0.0 ERROR

import datatable

test = """\
1.,2,3,4,5,6,7,8,9,10
1.,2,3,4,5,6,7,8,9,10
1.,2,3,4,5,6,7
1.,2,3,4,5,6,7
1.,2, ,4,5,6,7
  ,2,3,4,5,6,7
  ,2,3,4,5,6,7"""

print(datatable.__version__)
#> 1.0.0
print(datatable.fread(test, fill=True))
#> |      C0     C1     C2     C3     C4     C5     C6     C7     C8     C9
#>    | float64  int32  int32  int32  int32  int32  int32  int32  int32  int32
#> -- + -------  -----  -----  -----  -----  -----  -----  -----  -----  -----
#>  0 |       1      2      3      4      5      6      7      8      9     10
#>  1 |       1      2      3      4      5      6      7      8      9     10
#>  2 |       1      2      3      4      5      6      7     NA      7      7
#>  3 |       1      2      3      4      5      6      7     NA      7      7
#>  4 |       1      2     NA      4      5      6      7      7      7      7
#>  5 |      NA      2      3      4      5      6      7      7      7      7
#>  6 |      NA      2      3      4      5      6      7     NA     NA     NA
#> [7 rows x 10 columns]

1.1.0a0 FIXED

dev installs:
https://datatable.readthedocs.io/en/latest/start/install.html#install-latest-dev-version

import datatable

test = """\
1.,2,3,4,5,6,7,8,9,10
1.,2,3,4,5,6,7,8,9,10
1.,2,3,4,5,6,7
1.,2,3,4,5,6,7
1.,2, ,4,5,6,7
  ,2,3,4,5,6,7
  ,2,3,4,5,6,7"""

print(datatable.__version__)
#> 1.1.0a0+pr3381.2202
print(datatable.fread(test, fill=True))
#>    |      C0     C1     C2     C3     C4     C5     C6     C7     C8     C9
#>    | float64  int32  int32  int32  int32  int32  int32  int32  int32  int32
#> -- + -------  -----  -----  -----  -----  -----  -----  -----  -----  -----
#>  0 |       1      2      3      4      5      6      7      8      9     10
#>  1 |       1      2      3      4      5      6      7      8      9     10
#>  2 |       1      2      3      4      5      6      7     NA     NA     NA
#>  3 |       1      2      3      4      5      6      7     NA     NA     NA
#>  4 |       1      2     NA      4      5      6      7     NA     NA     NA
#>  5 |      NA      2      3      4      5      6      7     NA     NA     NA
#>  6 |      NA      2      3      4      5      6      7     NA     NA     NA
#> [7 rows x 10 columns]
@CagtayFabry CagtayFabry added the bug Something isn't working label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant