0

I am wondering what is the true difference between and and & operator in Python.

According to Python's equivalent of && (logical-and) in an if-statement, it appears using and is correct.

But in here Select DataFrame rows between two dates, it appears that & can also be used. But and is not working in this case

So where to use & operator correctly and where to use and?

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376
Brian Smith
  • 740
  • 1
  • 10

0 Answers0