# Remove columns before training

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fremove-columns-before-training%2F28908%3E%5C
**Category:** Beginners\
**Created:** [January 4, 2023, 7:36am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fremove-columns-before-training%2F28908 "2023-01-04T07:36:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cravephi](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@cravephi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcravephi)%5C
**Post date:** [January 4, 2023, 7:36am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fremove-columns-before-training%2F28908%2F1 "2023-01-04T07:36:50Z")

</div>

Hi,

I see in many examples that we remove unnecessary columns from the dataset, before training.  
Is it mandatory? I guess Trainer will take the columns produced by the tokenizer anyway (together with the “labels” columns).  
Is it to save some IOs? I guess transformer does not load unnecessary columns, but not sure then, why in examples, we remove them.

Sorry, very beginner question here 🙂
