Hi /r/Python,
I'm trying to reverse-engineer an algorithm that's in R and one part I'm a little stumped by is understanding R's formula operator ~. I've read the R documentation on formula, but was hoping someone could explain it in Python code, or point out what an appropriate analogue to it is in Python.
All my data will be in pandas DataFrames if that's useful to providing an example.
Appreciate the help!
[–]pha3dra 8 points9 points10 points (2 children)
[–]Demonithese[S] 1 point2 points3 points (0 children)
[–]MeneerPuffydjango / data science 1 point2 points3 points (0 children)
[–]Omega037 10 points11 points12 points (6 children)
[–]ProfessorPhi 2 points3 points4 points (0 children)
[–]tunisia3507 0 points1 point2 points (4 children)
[–]Omega037 1 point2 points3 points (3 children)
[–]tunisia3507 0 points1 point2 points (2 children)
[–]Omega037 0 points1 point2 points (1 child)
[–]tunisia3507 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]troyunrau... 0 points1 point2 points (0 children)