Question: when is the last time the astros were in the world series
Answer: In 2017 , they became the first franchise in MLB history to have won a pennant in both the NL and the AL , when they defeated the New York Yankees in the ALCS .