Skip to content

Commit f73398a

Browse files
authored
docs: fix typo in read_and_write.rst (#3479)
Correct minor typo in docs around using `alter_columns` to type cast. According to 45c158d `type` should be `data_type`.
1 parent f69480e commit f73398a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/read_and_write.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ at the cost of lower precision:
300300
})
301301
dataset = lance.write_dataset(table, "embeddings")
302302
dataset.alter_columns({"path": "embedding",
303-
"type": pa.list_(pa.float16(), 128)})
303+
"data_type": pa.list_(pa.float16(), 128)})
304304
dataset.schema()
305305

306306
.. testoutput::

0 commit comments

Comments
 (0)