4 ms·
> "real developers" dislike Python a lot less than they do R I thought that was real Scottmen. Because real Scottsmen prefer: table.loc[(table.column > 2) |
by mellavora 5y ago
> "real developers" dislike Python a lot less than they do R
I thought that was real Scottmen.
Because real Scottsmen prefer:
table.loc[(table.column > 2) | (table.column2 < 3)].reset_index(drop=True)
to
table[column > 2 & column2 < 3, ]
and everyone knows this!
not to mention, if you aren't managing 100 virtual environments and 100 conda environments (with different syntax for requirements), you aren't a real scottsman!
- em500 5y agoYes, I definitely put that up as a real Scotsman. The "real (Java) engineers" at my company scoff at the loosey-gooey attempts of the Python engineers trying to productionalize the numpy mess produced by our ML-engineers. I mean, how can you "productionalize" anything without Builders and Factories?
- maleldil 5y agoYou can do table.query('column > 2 or column2 < 3') If you want. I'm not sure why you're dropping the index there.