CellsView.to_frame#
- CellsView.to_frame(*args)[source]#
Convert the cells in the view into a DataFrame object.
If
args
is not given, this method returns a DataFrame that has an Index or a MultiIndex depending of the number of cells parameters and columns each of which corresponds to each cells included in the view.args
can be given to calculate cells values and limit the DataFrame indexes to the given arguments.The cells in this view may have different number of parameters, but parameters shared among multiple cells must appear in the same position in all the parameter lists. For example, Having
foo()
,bar(x)
andbaz(x, y=1)
is okay because the shared parameterx
is always the first parameter, but this method does not work if the view hasquz(x, z=2, y=1)
cells in addition to the first three cells, becausey
appears in different positions.- Parameters
args (optional) – multiple arguments, or an iterator of arguments to the cells.