I have a list of Linux commands that I need to repeat up to 670. How can I automate the commands, so I don't have to do the 670 times. I don't know how to do al
I have a pandas series of m*n elements of the following form where m=5 and n=3 : A: [1 1 1 1 1 0 1 1 0 0 0 0 0 1 1] I need a result series as follows : B: [1 0
I have a column in data frame like this (an simplify example): col col2 a 1 b 2 c 5 d 12 e 1 f 4 g 1 and I want to
I have been trying to pass a variable from one module to another in Python but I get an error. afile.py class Window: def __init__(self, master, *args):
#include<stdio.h> int facsum(long long int f) { long long int sum=1,i; if(f>0) { for(i=1;i<=f;i++) {
Is there a way to return a mutable attribute but protect it from updates? I have a Calendar class that uses an internal dict instance mapping datetime.date inst
i have a persistent bottomsheet like bottom_sheet_persistent.xml <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.co
I was replacing all of the spaces in a div element with so I could easily read all the spaces with a JavaScript file. When I was coding this I realiz
I made a C program to search for positive integers that has this kind of property: So clearly I want the program to at least output the number 262144, but my p
I'm very new to python language and xlwings. I just want to accomplish something very simple. I have two excel sheets, a.xlsx and b.xlsx. I know how to open