Posts by pydoni • 46 points
10 posts
-
1
votes3
answers1079
viewsA: transform list items into separate columns or extend dataframe to the end
I was able to solve by transforming each item in the list into a column in this way idf = pd.DataFrame({"Inventory": [self.inventory]}) idf = idf["Inventory"].apply(pd.Series) idc = pd.DataFrame({"…
-
0
votes1
answer51
viewsA: remove lists from a dictionary
It is probably by the same size, if you are testing all possible combinations for example of 13 different characters would already give 6.227.020.800 elements in your list and python has limit…
-
0
votes3
answers1079
viewsQ: transform list items into separate columns or extend dataframe to the end
I have a class with an element that is a list I’m trying to display in a pandas dataframe this list in a single line to represent the character’s inventory. assignment of items in the list: if…
-
1
votes2
answers353
viewsA: Problem to print on screen a string with accent
setlocale (LC_ALL,"English"); add this line at the beginning of main and tell me if it worked
-
0
votes1
answer170
viewsA: Function to enable and disable Listener
To create the function of enabling and disabling the Switch, you could place the def press inside another function with an if Else and ja that is using Tkinter attach to a button to make an…
-
-1
votes1
answer26
viewsQ: I cannot use functions and search for class attribute of an object
I’m not being able to call the attributes of the objects I create by the create_character function or activate the functions belonging to the class. I think when I try to assign the object in the…
-
1
votes1
answer3557
viewsA: Video not listed on youtube problems to open using iframe
many famous sites end up blocking the embedding in iframes because it allows the creation of malicious sites, so whenever you think of using iframe for a site see if it itself does not offer option…
-
0
votes1
answer47
viewsA: Python input problem
With these changes it runs more than once, but what you are wanting to get with logic because I believe that you can make things smaller using the functions Chr() and Ord(), I don’t know if it’s…
-
0
votes3
answers115
viewsA: Show a dictionary inside a class created by an external function
If you can help again, thank you very much and I think that after that I will fully understand the missing logic. I went back to tinkering with the code at night and based on what @Anderson went…
-
0
votes3
answers115
viewsQ: Show a dictionary inside a class created by an external function
I’m trying to create an RPG plug simulator, but I’m having trouble properly displaying the labels. Creation runs through the function criaPersonagem() creating an object in dictionary format (at…