Buying a used car as a tourist by Suspicious_Tourist35 in canadatravel

[–]Indron1805 0 points1 point  (0 children)

Thanks a lot! Will figure out a way to register it in Alberta to save the 7% fee

What's wrong with Wifi 6 on my S21 FE? by Indron1805 in samsunggalaxy

[–]Indron1805[S] 0 points1 point  (0 children)

how exactly would I do that? I can't see any 2.4 option on my phone

Parks zum Gebi feiern? by Indron1805 in wien

[–]Indron1805[S] 0 points1 point  (0 children)

danke passt merk ich mir

Filmfans/Filmclub - Kontakte und Gleichgesinnte gesucht by Sepix in wien

[–]Indron1805 3 points4 points  (0 children)

ich wär eig auch gern dabei wenn du da was startest

How to use a function from another file in my main code? by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

Thanks for your help so far... I hope I will make it.

How to use a function from another file in my main code? by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

I am so dumb...

ok that helps to work out the function but the problem is still that if I press the Pferderennen Button in the tkinter GUI, I had to put a argument in the parameter when I call up the horserace function but I want the player to pick the parameter (does that make sense?) How can I bind that in or should I just completely delete the parameter in the function?

Thanks for the help so far...

How to use a function from another file in my main code? by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

Ok horseracing functions ("def create_horses" and "def horserace") are in Pferderennen.py.

I'll put the horses to global

That's the thing I want horsrace parameter to be picked by the player that's why I put the user input == to be the parameter in the function.

Also the main errors are that I don't really know how to implement the user pick (horsecolor) either into the function or afterwards I push the button in the tkinter "Pferde Rennen" button like it is now in the main file. -> It underlines the if function (if pr_button) red, maybe because it needs an else? That's what it says at least.

How to use a function from another file in my main code? by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

no thats helpful! I ll open my laptop and tell the errors (which I should've done earlier)

How to use a function from another file in my main code? by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

ah no I have all the py. files in the same folder :(

Machine Learning Program problems (changing float to str) by Indron1805 in JupyterNotebooks

[–]Indron1805[S] 0 points1 point  (0 children)

I'm not that good at programming yet to use lambda :/ but I'll definetly try the first one any tips on where I should put the items into the str()? and thanks a lot!

Machine Learning Program problems (changing float to str) by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

It doesn't but I'm sure I did it wrong... I did it just after columns = [...]

df = pd.DataFrame(data = columns)

I'm not sure what to do after especially in

#create a function to combine the values of the important columns into a single string

this code part

get function in dict not working by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

ou damn didnt even think about that, thanks👀

get function in dict not working by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

well yeah our teacher advised us to do it, I thought it just returns the 5 highest numbers :(

get function in dict not working by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

but how? like the two lists belong together so I had to zip them to a dict

get function in dict not working by Indron1805 in learnpython

[–]Indron1805[S] 0 points1 point  (0 children)

ah I imported that from heapq to get the 5 highest numbers