Posts by ajobr • 26 points
3 posts
-
1
votes1
answer98
viewsA: How do I inform pro python that an excel cell is blank
Try to use pd isnull.(), this method checks whether the series or dataframe is empty. Returns True if it is and False otherwise. Take an example: import pandas as pd data = {'col_1': [3, 2, 1, 0],…
-
0
votes3
answers300
viewsA: How to use while and if in Python?
There are two good ways to do this, varies according to what you specifically want. first form: peso_lutador = float(input('peso aqui')) while peso_lutador != 0: print(peso_lutador) peso_lutador =…
-
0
votes1
answer23
viewsA: Filter model datetime Django
You can use the module datetime to do this. Use the method .strftime(). See below: from datetime import datetime data_hora = datetime.now() mes = data_hora.strftime('%m') print(mes) It will return…