Posts by kyokiuran • 31 points
2 posts
-
0
votes2
answers48
viewsQ: How do I delete a line that contains letters in a dataframe?
I want to exclude lines containing letters in that dataframe dic = {'Código':dataframe['Cod'], 'Dimensões': list_no_x} new_dataframe = pd.DataFrame(dic) print(new_dataframe) The way out is like…
-
2
votes2
answers99
viewsQ: Why is it necessary to instantiate a Python class when I can call it directly?
class People: def talk(): print('hello') p1 = People p1.talk() What is the need of instance it if I may call you directly? class People: def talk(): print('hello') People.talk()…