JeffTheKiller

0

votes
0

answer
14

views

standard_init_linux.go:190: exec user process caused “No such file or directory” while running Docker image

I have a Docker base image containing filesystem prepared for ARM architecture. It was built simply from this Dockerfile: FROM scratch COPY system/ / 'system' folder contains standard Linux folders: bin boot dev etc home lib media mnt opt proc run sbin sys tmp usr var My problem is t...
JeffTheKiller
3

votes
1

answer
270

views

Pandas: drop rows after first occurrence of value in one column for each id

my Dataframe which I work with looks like this: ID Alarm 1 1 1 2 1 3 2 3 2 1 2 2 2 4 3 4 3 2 I would like to remove all rows for each ID separately, after first occurrence of Alarm = 2. So the output should be: ID Alarm 1 1 1 2 2 3 2 1 2 2 3 4 3 2 What is the simplest...
JeffTheKiller
1

votes
1

answer
59

views

Python: How to delete all rows which for each ID have only one value?

I have a dataframe in pandas, looking like this: ID event 1 2 1 3 2 2 2 2 3 2 3 1 3 5 3 2 I would like to delete all rows, which for given ID have only one, same value in 'event' column. So my output should be: ID event 1 2 1 3 3...
JeffTheKiller
2

votes
1

answer
186

views

Pandas, selecting rows with conditions depend on column date value

I begin with my dataframe: ID Alarm Date 1 1 2017-09-06 13:41:36.0 1 2 2017-09-06 15:50:20.0 2 3 2016-12-12 13:30:30.0 2 1 2017-09-03 18:24:12.0 2 2 2017-09-06 12:01:51.0 3 4 2017-08-10 13:11:11.0 3 2 2017-09-06 14:43:33.0 So for each ID it is sorted ascen...
JeffTheKiller
1

votes
4

answer
380

views

creating new ArrayList with elements from another one

I'm writing the code of my first Java game right now and I have a problem with ArrayList. I have one, with elements like nicknames and scores, to be specific I create it from the text file(code below): static ArrayList results = new ArrayList(); BufferedReader br = new BufferedReader(new FileReader(...
JeffTheKiller
2

votes
1

answer
37

views

python: replacing ints for strings from the binary vectors

So my problem is that I cannot replace any value from a list of binary vectors to a string. My list looks like: [[0 0 0 1 0 0 1 0 0 0 0 1 0 0 0] [0 0 0 0 0 0 1 0 1 0 1 0 0 0 0] [0 1 0 0 1 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 1 0 0 0 1 0 0] [0 0 0 0 0 0 0 0 0 0 0 0 0...
JeffTheKiller