python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Adding Matrix in sympy from a 2x2 to a 3x3
So im trying to add two matrixes together in sympy from a 2x2 matrix to a 3x3 matrix and im not really sure how to do it! What i want to achieve is this: Wanted Result
By adding together: K1 and K2. B...
Lopehert
Votes: 0
Answers: 2
Numeric data type not storing the values correctly in pypark
I am having a problem storing with the decimal data type and not sure if it is a bug or I am doing something wrong
The data in the file is :
value : "15.957"
When I cast this string in num...
jony
Votes: 0
Answers: 1
Identify pandas dataframe columns containing both numeric and string
I have created the following dataframe (called df):
d = {'ltv': [1, 22,45,78], 'age': [33, 43,54,65],'job': ['Salaried','Salaried','Salaried','Owner'], 'UniqueID' : ['A1','A2','A3','A4'] }
df = pd.Dat...
Giampaolo Levorato
Votes: 0
Answers: 2
Add +1 (>1) after every time a condition is met
(sorry, really don't know how to better phrase this question)
I have a column "have" with 1s and 0s. I want to create a new column "want" where, each time a 1 has occurred, the val...
user303287
Votes: 0
Answers: 5