uproot.to_writable
Defined in uproot.writing.identify on line 185.
- uproot.writing.identify.to_writable(obj)
- Converts arbitrary Python object - objto a writable uproot.Model if possible; raises- TypeErrorotherwise.- This function is a series of rules that defines what Python data can or cannot be written to ROOT files. For instance, a 2-tuple of NumPy arrays with the appropriate dimensions is recognized as a histogram, since NumPy’s - np.histogramfunction produces such objects.- This series of rules is expected to grow with time.