concept data leakage in category deep learning

This is an excerpt from Manning's book Deep Learning with Structured Data.
Before we get into the details of the code that constitutes the model, we need to review which columns (either columns from the original dataset or columns derived from the original columns) are legitimate to use to train the model. If we need to use the model to predict streetcar delays, we need to ensure we avoid data leakage. Data leakage is the problem that occurs when you train a model using data (including the outcome that you’re trying to predict) from outside the training dataset. If you succumb to data leakage when you train a model by depending on data that isn’t available at the point when you want to make a prediction, then you risk the following problems: