python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Pandas apply multiple function with list
I have a df with a 'File_name' column which contains strings of a file name, which I would like to parse:
data = [['f1h3_13oct2021_gt1.csv', 2], ['p8-gfr-20dec2021-81.csv', 0.5]]
df= pd.DataFrame(dat...
ingcerullo
Votes: 0
Answers: 1
Calculate every row in a pandas dataframe with a value specific to that row
I have a fairly big dataframe with around 20 columns containing floats, and one column with a factor.
index
col1
col2
factor
row1
5.2
10.5
1.01
row2
92.61
141.7
1.3
row3
2.75
205.56
1.9
...
ssiftekhar
Votes: 0
Answers: 2
Create new column with applying a function (TypeError: unhashable type: 'list')
df['identities']
| identities |
| --------------------------------------------------------- |
| 0 [93, 94, 127, 112, 93, 94, 127, 112, 20, 68, 6....

7F_WZ
Votes: 0
Answers: 1