histogram_base.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:physt 作者: janpipek 项目源码 文件源码
def _coerce_dtype(self, other_dtype):
        """Possibly change the bin content type to allow correct operations with other operand.

        Parameters
        ----------
        other_dtype : np.dtype or type
        """
        new_dtype = np.find_common_type([self.dtype, np.dtype(other_dtype)], [])
        if new_dtype != self.dtype:
            self.dtype = new_dtype
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号