Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 965 Bytes

File metadata and controls

30 lines (21 loc) · 965 Bytes

Quantile_Normalize

This function implements quantile normalization in python matrix (Pandas DataFrame)

dependencies

  1. Numpy
  2. Pandas

data

Input data is a Pandas dataframe (df). Each row stands for an observations and each column stands for an attribute

usage

from Quantile_Normalize.quantile_norm import quantileNormalize
result = quantileNormalize(df)

advantage

Pretty simple logic but relatively high efficiency

references

Thanks for the following:

Ranking of numpy array with possible duplicates

stack overflow

This solves the problem of quantile normalization on pandas dataframe

acknowledgement

Thanks for the help of Mr. Tan