Withdrawing from a class

What does having one withdrawal in a major course do for your chances at getting into graduate school? If you retake the course and get an A, is that taken into consideration?

There are many reasons for students to have “W” grades. If you have an “A” when retaking it then the latter grade will have the bigger weight.