python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to order rows according to two conditions?
Given data:
df
Var1 Var2 Values
aaa x 4
aaa y 7
aaa z 6
bbb x 9
bbb y 21
bbb z 13
ccc x 4
ccc y 19
ccc ...
must
Votes: 0
Answers: 1
removing rows from dataframe if column value condition is met
stables=["usdt","usdc","tusd"]
my dataframe called "df" looks like this (actual dataframe has hundreds of rows):
pairs apy network ...
Grx
Votes: 0
Answers: 1
How to change a data frame from rows to a column stucture
I have the following data frame in R.
ID | Year_Month | Amount
10001|2021-06 | 85
10001|2021-07 | 32.0
20032|2021-08 | 63
20032|2021-09 | 44.23
20033|2021-11 | 1...
alphasqrd
Votes: 0
Answers: 1
How to create a new column by iterating a mathematical formula over rows
I have a dataframe df with several rows:
df=pd.read_csv('data.csv')
df
date time data
0 15.01.2012 13:58:00 0.000212
1 15.01.2012 13:58:03 0.052521
2 15.01.20...
Lucia Iezzi
Votes: 0
Answers: 1