Skip to content

Commit b33d203

Browse files
committed
change fmt
1 parent 22162ce commit b33d203

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ibis-server/app/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _to_datetime_and_format(series: pd.Series) -> pd.Series:
2929

3030

3131
def _to_json_obj(df: pd.DataFrame) -> dict:
32-
data = df.map(lambda x: f"{x:.9f}" if isinstance(x, float) else x).to_dict(
32+
data = df.map(lambda x: f"{x:.9g}" if isinstance(x, float) else x).to_dict(
3333
orient="split", index=False
3434
)
3535

ibis-server/tests/routers/v2/connector/test_postgres.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ async def test_format_floating(client, manifest_str, postgres):
283283
"inf",
284284
"-inf",
285285
None,
286-
"123.456001282",
287-
"12300.00000",
286+
"123.456001",
287+
"12300.00000"
288288
]
289289
]
290290

0 commit comments

Comments
 (0)