df2[df2 > 0] = 'B' df2
TypeError Traceback (most recent call last) in ----> 1 df2[df2 > 0] = 'B' 2 df2
8 frames /usr/local/lib/python3.8/dist-packages/pandas/libs/ops.pyx in pandas.libs.ops.scalar_compare()
TypeError: '>' not supported between instances of 'str' and 'int'