Home > other >  Python for help
Python for help

Time:04-26

A piece of code, if the column in table uni unit_price exist in the value equal to zero, is replaced with the median column, and

CodePudding user response:

What do you mean, what is the median number of the column, if the column in table uni unit_price is what table? Mysql table or excel table?

CodePudding user response:

In uni this form, if the unit_price column is 0, 0 to replace as a median of 79 excel import python, strives for the python how make this code

CodePudding user response:

If df is selected as a value of zero assignment
For example,
 uni. Loc [uni [' unit_price]==0]=uni [' unit_price]. Median 
  • Related