Skip to content

Tag: python

Ho to get exactly id from ping discord py

I want to create a command using id from pinged user and the return id like that : <@696986678887317556> and i want it : 696986678887317556, so i have coding this : And the result are this : <@696986678887317556 how i can code it pls 😭 Answer The mentioned user will be in ctx.message.mentions so loop…

Python OOP using sklearn API

I want to learn more advanced OOP methods and create a class using sklearn APIs, my idea is to integrate feature selection methods. I want to be able to call a feature selection method by name, and next fit and transform data. I am not sure, what I am doing wrong but currently, I have the following error that…

string split with the value of another clumn PySpark

I have the following data frame i want it to split path column with value of the item column in the same index i’ve used this udf function it worked very well But, i was wondering if there’s another way to do it with pyspark function because i can’t use in anyway the “org” to joi…

Trying to resolve ModuleNotFoundError: No module named

Trying to install third party modules on my mac using pip and I am getting this error (Using IDLE as the Python shell): (Have tried multiple modules and all return the same error) I have installed the modules using: I can see that it has installed into the directory: Ive tried going through several of the pos…