# Push\_to\_hub doesn't overwrite

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-doesnt-overwrite%2F48987%3E%5C
**Category:** 🤗Datasets\
**Created:** [August 1, 2023, 2:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-doesnt-overwrite%2F48987 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnihiluis)%5C
**Post date:** [August 1, 2023, 2:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-to-hub-doesnt-overwrite%2F48987%2F1 "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.
