Ao usar df1[df1>0]='A' retorna uma mensagem de erro.
TypeError Traceback (most recent call last)
<ipython-input-21-dcbe209bd953> in <cell line: 1>()
----> 1 df1[df1>0]='A'
8 frames
/usr/local/lib/python3.9/dist-packages/pandas/_libs/ops.pyx in pandas._libs.ops.scalar_compare()
TypeError: '>' not supported between instances of 'str' and 'int'