I am trying to fit PCA on the train and test data.

```
X_train.shape

(2735, 219)

```

PCA:

```
pca = PCA(n_components=30)
X_train = pca.fit_transform(X_train)

```

Test data:

```
test_values.shape
(395, 219)

```

Transformation:

```
test_values = pca.transform(test_values)

```

Error:

```
ValueError: operands could not be broadcast together with shapes (395,219) (30,)

```

I am not sure on why there is a broadcast error, both the numpy arrays have the same columns 219.
Any suggestions please