# Push\_to\_hub doesn't overwrite

**URL:** <https://discuss.huggingface.co/t/push-to-hub-doesnt-overwrite/48987>\
**Category:** 🤗Datasets\
**Created:** [August 1, 2023, 2:39pm UTC](https://discuss.huggingface.co/t/push-to-hub-doesnt-overwrite/48987 "2023-08-01T14:39:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihiluis](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nihiluis](https://discuss.huggingface.co/u/nihiluis)\
**Post date:** [August 1, 2023, 2:39pm UTC](https://discuss.huggingface.co/t/push-to-hub-doesnt-overwrite/48987/1 "2023-08-01T14:39:10Z")

</div>

I use this code to upload my dataset to an existing dataset repo on huggingface: `Dataset.from_pandas(correct_df, preserve_index=False).push_to_hub("xy")`

It doesn’t seem to change anything on my huggingface dataset. The data remains the same. I expected it to be overwritten. How come? Im on the 2.14.1 datasets version.
