nan in [ ]obj reindex([' '' '' '' '' ']fill_value= out[ ] - for ordered data like time seriesit may be desirable to do some interpolation or filling of values when reindexing the method option allows us to do thisusing method such as ffill which forward fills the valuesin [ ]obj series(['blue''purple''yellow']index=[ ]in [ ]obj reindex(range( )method='ffill'out[ ] blue blue purple purple yellow yellow table - lists available method options at this timeinterpolation more sophisticated than forwardand backfilling would need to be applied after the fact table - reindex method (interpolationoptions argument description ffill or pad fill (or carryvalues forward bfill or backfill fill (or carryvalues backward with dataframereindex can alter either the (rowindexcolumnsor both when passed just sequencethe rows are reindexed in the resultin [ ]frame dataframe(np arange( reshape(( ))index=[' '' '' ']columns=['ohio''texas''california']in [ ]frame out[ ]ohio texas california in [ ]frame frame reindex([' '' '' '' ']in [ ]frame out[ ]essential functionality www it-ebooks info