Python Forum
create new column based on condition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create new column based on condition
#1
Hello
I want to create a new column that includes calculations based on existing columns.

[Image: gmg2jbM]

All rows have same calculations except row 1.
I hope I am able make explain you what I want.

Thanks in advance.
Reply


Messages In This Thread
create new column based on condition - by arvin - Dec-12-2022, 11:32 AM
RE: create new column based on condition - by arvin - Dec-12-2022, 02:22 PM
RE: create new column based on condition - by arvin - Dec-12-2022, 02:26 PM
RE: create new column based on condition - by arvin - Dec-13-2022, 06:24 AM
RE: create new column based on condition - by arvin - Dec-13-2022, 10:36 AM
RE: create new column based on condition - by arvin - Dec-13-2022, 10:37 AM
RE: create new column based on condition - by arvin - Dec-13-2022, 11:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get an average of the unique values of a column with group by condition and assign it klllmmm 0 352 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  unable to remove all elements from list based on a condition sg_python 3 505 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Create dual folder on different path/drive based on the date agmoraojr 2 497 Jan-21-2024, 10:02 AM
Last Post: snippsat
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 775 Dec-04-2023, 09:48 PM
Last Post: sanky1990
  Sent email based on if condition stewietopg 1 910 Mar-15-2023, 08:54 AM
Last Post: menator01
  How to assign a value to pandas dataframe column rows based on a condition klllmmm 0 877 Sep-08-2022, 06:32 AM
Last Post: klllmmm
  Python create a spreadsheet with column and row header ouruslife 4 1,703 Jul-09-2022, 11:01 AM
Last Post: Pedroski55
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,561 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  Openpyxl-change value of cells in column based on value that currently occupies cells phillipaj1391 5 9,986 Mar-30-2022, 11:05 PM
Last Post: Pedroski55
  Cannot convert the series to <class 'int'> when trying to create new dataframe column Mark17 3 8,630 Jan-20-2022, 05:15 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020