All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

pyspark code ranking question where i did wrong?

I have a dataset as below: ID date class 1 2020/01/02 [math,english] 1 2020/01/03 [math,english] 1 2020/01/04 [math,english] 2 2020/01/02 [math,english] 2 2020/01/03 [math,...
0
votes
0answers
3 views

How do I use selenium to click on the third div class "link' if they all share the same div class?

I am using selenium with python. All of the HTML shares the same div class "links". There are seven links in total on the page, each with the same class and part of the same name. I was ...
0
votes
0answers
3 views

Add some calculation to CLLocationDistance

Here is my problem I can print in console double value (aka the distance) but I can't take a double and add the distance in a table view for exemple. if previousLocation == nil { ...
0
votes
0answers
7 views

Does a “using” directive change runtime behavior or DLL binding?

I've ran across a strange behavior in C# that I'm curious if anyone can shed some light on. Here's the code: using System.Fabric; // Blah blah, doesn't really matter but eventually we get to this: ...
0
votes
0answers
5 views

Produce a list of the “closest” triplets from three arrays

Background: Consider 3 "arrays" (I'm working with std::vector<T> containers, however I'm open to using another container if it should somehow allow for a solution to this problem), of ...
0
votes
0answers
5 views

update column values to reflect other column values having two different size dataframes

I have the following two data frames. df_1: unique_id amount 1 NaN 2 5 df_2: unique_id amount city email 1 90 Kansas True 2 100 Miami False 3 ...
0
votes
1answer
8 views

How to groupby multiple columns with count unique value in Python Pandas

I have a DataFrame df_data: CustID MatchID LocationID isMajor #Major is 1 and Minor is 0 1 11111 324 0 1 11111 324 0 1 11111 324 ...
0
votes
0answers
6 views

Im making a Discord bot, but when the bot uses Rythm commands, nothing happens. Is there a way to fix this?

When i use commands, it works. When my bot uses commands, it doesnt. Is there a way to get around this? Im making a command that plays the author's favourite song when used. Heres the code for the ...
0
votes
0answers
4 views

Using a class's properties without having to write its name down every time

fun eval(expr: Expr): Int = when (expr) { is Num -> expr.value is Sum -> expr.left + expr.right } interface Expr class Num(val value: Int) : Expr class ...
-2
votes
0answers
6 views

What is the best way to convert a complicated spreadsheet to a web app with VBA and VB knowledge

I would like to create a web app based on an excel spreadsheet. I am a fairy advanced VBA/VB programmer and am just looking for a minimal viable product to get this idea off the ground. I have played ...
0
votes
1answer
7 views

Return the only element in the hash table in Python

I am working on a problem as: In a non-empty array of integers, every number appears twice except for one, find that single number. I tried to work it out by the hash table: class Solution: def ...
1
vote
1answer
14 views

use ! in Reactjs Component in JSX

I want to change Material-UI Button component. <Button> to <Button disabled> So my source code is this,but it shows the Parsing error: Unexpected token, expected "..." <...
0
votes
0answers
3 views

Gradle publishing jar into nexus repo

Q: Task 'publishAllPublicationsToSnapshotRepository' not found in root project img:erro build.sh: enter image description here
0
votes
0answers
5 views

Does 【go】 have a log interceptor? Or how should I implement a common log interceptor?

Does go have a log interceptor? Or how should I implement a common log interceptor? such as beego/logs and logrus. I know that logrus can use hook to intercept logs, but I want to find out the common ...
0
votes
0answers
6 views

Replacing the tkinter.Text insert method

I was trying to replace (at runtime) the inherited insert() method for a subclass of tkinter.Text. The replacement method executes a few lines of code before calling the parent class' (tkinter.Text) ...

15 30 50 per page
1
2 3 4 5
1383004