Posts by Marcos • 13 points
2 posts
-
-1
votes1
answer17
viewsQ: Save the number of rows of a dataframe to a variable
I have a dataframe that is generated randomly by varying its number of lines. I would like to save this variable number for future use. Follow the example of dataframe: And I’d like to replace the…
-
-1
votes1
answer37
viewsQ: Syntaxerror: invalid syntax data.append)=(R)
It’s giving a syntax error but I believe that’s not it, but I can not identify what’s wrong: ```python #retorno df = carteira.copy() df = df.reset_index() colunas = df.columns columns =…
python-3.xasked Marcos 13