True if two Variables have the values after being broadcast against each other; otherwise False. Variables can still be equal (like pandas objects) if they have NaN values in the same locations.
(self, other, equiv=duck_array_ops.array_equiv)
| 1893 | return False |
| 1894 | |
| 1895 | def broadcast_equals(self, other, equiv=duck_array_ops.array_equiv): |
| 1896 | """True if two Variables have the values after being broadcast against |
| 1897 | each other; otherwise False. |
| 1898 | |
| 1899 | Variables can still be equal (like pandas objects) if they have NaN |
| 1900 | values in the same locations. |
| 1901 | """ |
| 1902 | try: |
| 1903 | self, other = broadcast_variables(self, other) |
| 1904 | except (ValueError, AttributeError): |
| 1905 | return False |
| 1906 | return self.equals(other, equiv=equiv) |
| 1907 | |
| 1908 | def identical(self, other, equiv=duck_array_ops.array_equiv): |
| 1909 | """Like equals, but also checks attributes.""" |