This question already has an answer here:
I am an international student at a US university with a major in Physics. I am applying for PhD in astrophysics/gravitational physics fields. Until my sophomore year I was a Computer Science major with a Physics minor, but starting my junior year, I changed my major to Physics. During my sophomore year, I was suffering through home-sickness/depression and failed two of my Computer Science classes. (Later I did a computational project and won a prize at a hackathon). But I have A's in all my Physics classes (including the upper level courses), and did a summer internship at a reputed institute in Germany. I am a senior with a 3.8 GPA in Physics and 3.5 overall GPA. I am not aiming for any top universities, but mostly to lower ranked schools with good Physics programs (that are within my GPA and GRE scores). Should I still consider applying to grad schools or change my career plans? How does this affect my application?