# Update / change the range of a dimension after array creation

**URL:** <https://forum.tiledb.com/t/update-change-the-range-of-a-dimension-after-array-creation/578>\
**Category:** Uncategorized\
**Created:** [May 30, 2023, 4:53pm UTC](https://forum.tiledb.com/t/update-change-the-range-of-a-dimension-after-array-creation/578 "2023-05-30T16:53:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_L](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/dave_l/32/255_2.png) [@Dave\_L](https://forum.tiledb.com/u/Dave_L)\
**Post date:** [May 30, 2023, 4:53pm UTC](https://forum.tiledb.com/t/update-change-the-range-of-a-dimension-after-array-creation/578/1 "2023-05-30T16:53:13Z")

</div>

I was wondering if there is a way to increase the range of a dimension once an array has been created. For example, if I have a “timestamp” dimension of type datetime64, and when I created the array the range of the dimension was `(2019-09-01, 2020-01-01)`, is there a way to update the upper bound to be `2024-01-01` implying that the array contains data from september of 2019 to January of 2024?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/ihnorton/32/23_2.png) [@ihnorton](https://forum.tiledb.com/u/ihnorton)\
**Post date:** [May 30, 2023, 6:46pm UTC](https://forum.tiledb.com/t/update-change-the-range-of-a-dimension-after-array-creation/578/2 "2023-05-30T18:46:02Z")

</div>

Hi @Dave_L,

> increase the range of a dimension once an array has been created

No, this is not supported (yet). For row counts or dates, it is often useful to specify a larger range than the current working set, sometimes even the min/max value of the data type. TileDB will only store data in regions that are actually written; adding data in unwritten ranges with subsequent writes will expand the “nonempty domain” of the array.

Hope that helps,  
Isaiah

---

<div class="post-metadata">

**Author:** ![Dave\_L](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/dave_l/32/255_2.png) [@Dave\_L](https://forum.tiledb.com/u/Dave_L)\
**Post date:** [May 31, 2023, 2:13pm UTC](https://forum.tiledb.com/t/update-change-the-range-of-a-dimension-after-array-creation/578/3 "2023-05-31T14:13:08Z")

</div>

Thank you @ihnorton for the reply. I am re-creating the array. Does the `from_pandas` method give me the option to specify a range for the columns I assign in the `index_dims` argument?

EDIT: NVM! [the API reference](https://tiledb-inc-tiledb.readthedocs-hosted.com/projects/tiledb-py/en/stable/python-api.html#tiledb.from_pandas) gives details on the arguments to this function and looks like the `full_domain` arg should take care of this.
