Bakersfield is a city in California with a desert climate, surrounded by mountains on two sides. Therefore, it will be hot and dry most of the time. It does not rain often; there may be some in January and February.
The average summer temperature is 29°C whilst the average winter temperature is 9 °C.
For the most reasonable weather visit in late spring and summer.
Dress and plan accordingly.