Currently I am trying to solve the following problem: Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having a
z = {'A': [0.3618426, 0.36146951], 'B': [1.8908799, 1.904695], 'C': [2.1813462e+08, 2.1833622e+08], 'D': [0.89925492, 0.89953589], 'E': [2.6356747, 2.6317911],
I am trying to migrate a program using python manage.py db migrate in my Visual Studio terminal but when I run it I am getting an error named (2005, "Unknown se
I have a really simple logic that I would like to understand how I can make it work in pyspark. for data in df1: spark_data_row = spark.createDataFrame(data
I would like to know, whether there is a pre-built function / package which does a simply OLS regression, by adding one independent variable from a pre-defined
I am currently learning to code with python in vscode but recently I have been having problems with file seemingly deleting themselves after attempted execution
I am running different machine learning models on my data set. I am using sklearn pipelines to try different transforms on the numeric features to evaluate if o
I am looking for a method that will look at each date in "Date A" and find the next nearest date after that value in "Date B" by ID (group_by). I then want to c
I defined the following model, which has two distinct outputs: input_layer = keras.layers.Input(shape = (1, 20), name = "input_features") # Shared layers hidde
I want to implement a code highlighting function, but I don't know how to use this tk.Text 。 (not necessarily python, of course) I hope to get a highligh
I want to take multiple integer inputs in the same line. I know I can take str input and then convert them into integer in the next line but i
I am looking to build a numpy extension module which declares a new structured dtype and provides the necessary inner ufunc loops to allow built-in math operati
I want to plot 2 adjacent figures sharing the y axis but I want to specify different ticks and labels to the left of the left figure and to the right of the rig
I have a dozen pre-trained DNNs that I wish to add to a sklearn ensemble. The issue is that it seems I can not provide pre-trained models to KerasClassifier. cl
So my aunt plays this now popular mobile game, shown in the picture below. She got stuck on a certain level and asked me if I can solve it. Knowing that I'm not
I am dealing with metered time series data, that should not have the exact same value for more than n steps. I want to build a script that, given a threshold n,
So I am trying to use a pre-trained model on my data set to then compare it to my own cnn model. However, I see an error as soon as I try to do model. fit so mu
I am searching for a solution for a long time but couldn't be able to find it. There are more similar qestion-answers but that didn't help me. Basically I have
Here's how I create the map and add a dropdown menu with option1 and option2. import pandas as pd import plotly.express as px us_cities = pd.read_csv( 'htt
I have a simple python dockerized application whose structure is /src - server.py - test_server.py Dockerfile requirements.txt in which the docker base image