i am trying to do a message scrapper bot with discord.py and i have a problem. With the followign I am able to detect all the new messages that are recived on my account (groups and dm) but when i try to get the content of that messages it returs an empty str. It only ..
when adding a button to mail.mail_activity_view_form_popup popup related to some custom functionality when clicking the new button it triggers the schedule button in the popup while stoping the custom button functionality here is an example of me trying to open a new wizard class CustomMailActivity(models.Model): _inherit = ‘mail.activity’ def inspection_visit_call(self): self.env[‘res.partner’].search([(‘id’, ‘=’, self.res_id)]).open_custom_edit_form() class inspection(models.Model): ..
I am having trouble with subplots in pandas. My goal is to create a number of histograms from some accuracy data I have collected. I would like to plot these histograms on separate axes based on their ‘id’ and ‘barcode’. I have 2 barcodes and 5 id variants in total so would like to plot ..
I’m trying to analyze the difference of items bought(if there is any) between returning and non-returning customers(userId). The default data frame looks like this. Dataframe firstOrder should contain only products from customers that have more than one order(order code) and only their first order. So basically first order from returning customers. Dataframe noReturn should contain ..
I’m writing a wrapper script in python which should run another python script and pass along some options from the user as is. The command line would look like: myscript -pass_on — -opt1 o1 -opt2 -opt3 … — The resulting command would be: sub_script -opt1 o1 -opt2 -opt3 … sub_script can be in any scripting ..
so i need to code a program which, for example if given the input 3[a]2[b], prints "aaabb" or when given 3[ab]2[c],prints "abababcc"(basicly prints that amount of that letter in the given order). i tried to use a for loop to iterate the first given input and then detect "[" letters in it so it’ll know ..
I am new to Django and I am working on a small project, I want an error message to be shown if the user let the field empty. the code that I wrote is not working. Can anyone help me ? def validate_name(school: School): if school.name is None: raise APIException(detail=’Name is mandatory.’) class SchoolService(object): @staticmethod ..
I am a beginner in Python and I am trying to change column names that currently represent the week number, to something easier to digest. I wanted to change them to show the date of the week commencing but I am having issues with converting the types. I have a table that looks similar to ..
How to solve this question Create a function password_maker(word_list) that takes a list of words, word_list, and returns a string with the first and last character of each word in a list. For example, password_maker("show", "me", "the", "money") would return swmetemy. Source: Python..
I have time series data and I want to know how to find out the probability that the next one will be bigger than zero. this time series doesn’t have a seasonal aspect tp it but it does have a slope and a level and autocorrelation. Source: Python..