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

StoreFilter value_format_float_positional not working properly #511

Open
chaburkland opened this issue Jul 6, 2022 · 0 comments
Open

StoreFilter value_format_float_positional not working properly #511

chaburkland opened this issue Jul 6, 2022 · 0 comments

Comments

@chaburkland
Copy link
Collaborator

chaburkland commented Jul 6, 2022

Example

from io import StringIO
import static_frame as sf

raw = StringIO('count,score,color\n1,1.3,red\n3,5.2,green\n100,3,blue\n4,9.00,black')

sf.Frame.from_csv(raw, store_filter=sf.StoreFilter(value_format_float_positional="{:.2f}"))

The resulting frame is no different than if the store_filter was not provided

<Frame>
<Index> count   score     color <<U5>
<Index>
0       1       1.3       red
1       3       5.2       green
2       100     3.0       blue
3       4       9.0       black
<int64> <int64> <float64> <<U5>

Platform

<Series: platform>
<Index>
platform           Linux-5.4.0-117-generic-x86_64-with-glibc2.29
sys.version        3.8.12 (default, Jun 30 2022, 10:04:10) [GCC 9.4.0]
static-frame       0.9.6
numpy              1.17.4
pandas             0.24.2
xlsxwriter         1.1.5
openpyxl           3.0.9
xarray             <ModuleNotFoundError>
tables             3.6.1
pyarrow            0.17.0
msgpack            (1, 0, 0)
msgpack_numpy      None
<<U13>             <object>
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

No branches or pull requests

1 participant