Categories
Mastering Development

Nuxtjs : How to remove tooltip when validation form is valid

I use ant design in vuejs for create tooltip component. I wanna remove the tooltip when input form is valid. If fullname variable is false the tooltip will shown but fullname variable is true the tooltip will not shown. How to remove the tooltip when fullname variable is true? my code in vue component <div […]

Categories
Mastering Development

Fast way to remove array of specific row values from 2D numpy array

I have a 2D array like this: a = np.array([[25, 83, 18, 71], [75, 7, 0, 85], [25, 83, 18, 71], [25, 83, 18, 71], [75, 48, 8, 43], [ 7, 47, 96, 94], [ 7, 47, 96, 94], [56, 75, 50, 0], [19, 49, 92, 57], [52, 93, 58, 9]]) and I want to […]

Categories
Mastering Development

Finding the shortest distance between clusters

I have 10 data points in a 2D array: array([[74, 89], [31, 55], [89, 74], [73, 20], [95, 35], [93, 82], [47, 81], [21, 83], [78, 54], [39, 45]]) I calculated their distance from each other using sklearn NearestNeighbors. I also clustered them into 5 clusters. My distance array looks like this: array([[ 0. , […]

Categories
Mastering Development

t test x not enough ‘x’ observations using R with package rstatix

I have the following dataset: structure(list(AgeGroup = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, […]

Categories
Mastering Development

How can I get all details of the top x models from forecast::auto.arima in R?

My goal is to exactly re-create the top say 3 models from the auto.arima function in R. My example uses the following series: > data <- c(79, 73, 102, 158, 235, 326, 216, 153, 82, 87, 94, 163, 119, 81, 143, 179, 182, 247, 248, 105, 143, 64, 45, 163, 122, 95, 47, 117, 345, […]

Categories
Mastering Development

Object.keys(myObject) returns an arbitrary list of numbers, not expected value

This is a bit of a head-scratcher – and has been a source of pain for the past 3 hours. Here’s my code. const payloadBody = JSON.parse(gatewayEvent.body); console.log(payloadBody); console.log(gatewayEvent.body); console.log(payloadBody.paymentMethodId); console.log(payloadBody[‘paymentMethodId’]); console.log(Object.keys(payloadBody)); If I look at the CloudWatch logs for this (I am executing in Lambda), the line console.log(payloadBody) logs: { "customerId": "cus_REDACTED", "paymentMethodId": "pm_REDACTED", […]

Categories
Mastering Development

filter dateframe by certain date

I have a csv file containing dates in german format: date,D11,D21,D31,D41 19.03.2018 00:00:00,6,4,6,2 19.03.2018 01:00:00,5,8,5,1 20.03.2018 00:00:00,2,2,3,0 20.03.2018 01:00:00,2,5,4,1 21.03.2018 00:00:00,3,7,8,3 21.03.2018 01:00:00,18,22,19,3 22.03.2018 00:00:00,32,69,47,10 22.03.2018 01:00:00,105,105,69,32 23.03.2018 00:00:00,117,134,106,57 23.03.2018 01:00:00,97,83,95,73 I want to get rows by certain dates. In order to get this output: date,D11,D21,D31,D41 21.03.2018 00:00:00,3,7,8,3 21.03.2018 01:00:00,18,22,19,3 I tried this: import pandas […]

Categories
Mastering Development

Error converting string into datetime object

I have a list in the following format which i want to sort by date. I tried to convert the date-string into datetime-objects but it always says that it doesnt match the format. liste = [[‘25.03.19’, 41, 129], [‘19.03.19’, 47, 95], …]* error: ValueError: time data ” does not match format ‘%d.%m.%y’ def go(path): liste […]

Categories
Mastering Development

Is it possible in Java to implement interfaces and their methods without using the keyword “implements”?

I have homework to do (actually my girlfriend :-D) and there are some restrictions on what I can and can’t do. In my NetBeans project folder there are two folders named "interfaces" and "homework". The folder "interfaces" contains interfaces and classes that are NOT allowed to edit, because said that to us xD. I am […]

Categories
Mastering Development

I am having a bit of trouble with the css i the Question form

I am having trouble with the design of the question form, specifically the margin and and padding. I want the question form to have no spacing in between the the questions and a bit of spacing between the answers Currently it looks like this Current One The Code Html <!DOCTYPE html> <html> <head> <title>Website July […]