mitosheet.sheet()call, Mito will automatically generate a analysis ID and write it as the
analysis_to_replayparameter to this call. This analysis id will also appear in the generated code that Mito writes beneath the cell below - allowing the generated code and the mitosheet call to be linked together.
analysis_to_replayparameter to the
mitosheet.sheet()call, Mito will attempt to replay that analysis to the mitosheet. Replaying an analysis means applying the same edits that you did in Mito again. See below for an example.
mitosheet.sheet()call or simply delete the
analysis_to_replayparameter from an existing mitosheet call. Your generated code will remain below.
tesla-stock.csvfile as a dataframe.
Movementcolumn to the dataframe, and set it's formula to
Close - Openas in the previous analysis. This is because the generated code cell is right below the mitosheet.sheet call, and so Mito attempts to replay this analysis on the new dataframe that is passed (although the dataframe in this case happens to be identical).
mitosheet.sheet(tesla_stock, analysis_to_replay='id-abcdefg')call, you need to make sure that the columns you edited in your analysis still exist! If we passed a dataframe of
mitosheet.sheet()call that did not contain the
Closecolumns, then an error would occur as the formula that the Mitosheet attempts to replay the
analysis_to_replay='id-abcdefg', which references those columns, but they no longer exist. Thus, an error would occur.