I'm still relatively new to python so I'm having trouble figuring out how to accomplish a certain feat. What I'm trying to do: I have an Excel file with two col
I'm trying to write a twitter bot using Python that just tweets images on a schedule and selects a random one from an array of URLs. I'm hosting the images on i
Let's say I have the following ELF file in python: >>> data=open('file','rb').read() >>> data b'\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x0
Is the GlobalAveragePooling1D Layer the same like calculating the mean with a custom Lambda Layer? The data is temporal, so x has shape (batch, time, features)
I am trying to build a custom transaction processor for sawtooth but I have run into a wall and since then have been stuck there. I created a sawtooth test netw
I am trying to load a pandas dataframe into a tensor Dataset. The columns are text[string] and labels[a list in string format] A row would look something like:
Earlier I used to use from statsmodels.tsa.arima_model import ARIMA model = ARIMA(log_air_passengers, order=(2, 1, 0)) results_AR = model.fit(disp=-1) plt.p
Essentially, i have a polygon shape drawn out in my canvas, and want to duplicate it so that it fills up the entire canvas. I am quite new to programming in gen
I am looking to import my local python module file into my handler file in my serverless project, but despite this local file being located in the parent direct
Given the following hierarchy of python dataclasses: @dataclass class A: a: str aa: str @dataclass class B(A): b: str @dataclass class C(A):
I have the following dataframe: df = {'id': [1,2,3,4], '1': ['Green', 'Green', 'Green', 'Green'], '2': ['34','67', 'Blue', '77'], '3': ['Blue', '45', '9
Is it possible to dynamicaly modify the marshalled response model (ie : change fields list, add mask, ...) ? ex : from flask_restplus import Resource, fields m
Is there a way to both transform and filter in a single list comprehension, i.e.: def transform(el): if some_condition(el): return None return
I tried to build a simulation model as below, but I got error. Here's my scenario. I have two big areas of hospital. EU (EU1 and EU2) IU (IU1 and IU2) Each bi
This code works on two PCs but throws an error on another one. webdriver_path: str = os.environ.get("WEBDRIVER_PATH") chrome_user_data_dir: str = os.environ.get
I want to implement this logic from pydantic import BaseSettings class Settings(BaseSettings): ENVIRONMENT: str = 'local' SECRET_KEY: str = 'someke
So i'm a beginner at machine learning and i want to try out this project i found it youtube (link here) but the problem is when i get onto the step where i do p
My project is named main, and when I runserver I get this error.Anybody have any clue how to fix this error. Page not found (404) Request Method: GET Request UR
I'm trying to make a Blind-test bot game in Python, which actually works pretty fine. I managed to get a whole spotify playlist in the queue with that play_next
I have a zybooks lab with the prompt: Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the funct