You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,14 @@ print(df)
65
65
pyjviz.save_dot(vertical=True)
66
66
```
67
67
68
-
The besides usual output to stdout the code will produce this SVG file.
69
-
pyjviz visualization of pyjanitor method pipes (or chains) is based on dumping of RDF log of pyjanitor method calls into rdf log file. Resulting RDF log file contains graph of method calls where user could trace method execution as well as user-defined data useful for visual inspection. Note that visualisation of pyjviz RDF log is not a main goal of provided package. Graphviz visualization avaiable in the package is rather reference implementation with quite limited capablities. However RDF structure defined in rdflog.shacl.ttl could be used by SPARQL processor for visualization and other tasks.
68
+
The [`result`][res] of run is SVG file with clickable nodes to provide the way to see some details of program behaviour and generated data objects.
pyjviz visualization of pyjanitor method chains is based on dumping of RDF log of pyjanitor method calls into rdf log file. Resulting RDF log file contains graph of method calls where user could trace method execution as well as user-defined data useful for visual inspection. Note that visualisation of pyjviz RDF log is not a main goal of provided package. Graphviz visualization avaiable in the package is rather reference implementation with quite limited capablities. However RDF structure defined in rdflog.shacl.ttl could be used by SPARQL processor for visualization and other tasks.
70
73
71
74
Obj is representation of pyjanitor object like pandas DataFrame. However input args are not objects rather object states. The state of object is represeneted by RDF class ObjState. The idea to separate object and object state is introduced to enable pyjviz to visualize situation when object has mutliple states used in method chain due to in-place operations. Such practice is discouraged by most of data packages but still may be used. In most cases where object has only state defined when object is created there is not difference betwen object and object state since there is one-to-one correspondence (isomorfism). So in some context below refernce to an object may imply object state instead.
72
75
73
76
pyjviz also introduce MethodCall RDF class. It represents pyjanitor method call. MethodCall object has incoming links from input objects and outgoing link an object representing retirn object.
74
77
75
-
Aslo pyjviz introduces python class MethodsChain. MethodsChain is set of sequences of pyjanitor method calls grouped together. pyjantitor method calls are represented by RDF class MethodCall. Each MethodCall has one or more input objects and one return object. In pyjviz input args and return are presented by RDF class ObjState. Each ObjState has reference to RDF class Obj.
0 commit comments