I did about ten years ago and danced weekly for 5+ years (swing dancing). I joined classes alone and it went totally fine. You make friends in the class and if you go dancing regularly, you see the same people, so you start forming a community. Best of all, people who go to the dances are there to dance and not get drunk, so it's a great, safe way to meet other people who want to socialize, too.
I stopped going regularly after a little over 5 years, mostly because I was plateauing in my dancing and getting bored with it. In my experience, you plateau multiple times, just as with any skill, but you find a way to get better and more creative, but at that point, my heart wasn't into improving anymore so I wasn't enjoying it as much. I definitely keep telling myself to get back into it, however, because it's such a great social outlet.
I'll also add that it's a really great activity because it's physical, it's creative, and it's social. Partner dancing forces you to learn how to work with other people and communicate better. Not everyone you dance with has the same skill level and you might think you're doing well communicating (when you're leading) but after dancing with several people you find out right away where you're not doing a good job.
I also did find that it made me more aware of my movements and improved my musicality. I got better at watching other people dance and seeing what movements they made and how they choreographed their "routines". That kind of tickled a different part of my brain I hadn't used before in any other activity. The "plateauing" I mentioned earlier forced me to get better at watching others and repeating what they did as well as seeing what I was doing and trying to change it up if it was getting stale.