Completed
Push — master ( 4de886...4b7065 )
by Mubdi
02:09
created

knowyourdata.kyd_html_display_template   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
wmc 0
1
kyd_html_template = """
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
Coding Style Naming introduced by
The name kyd_html_template does not conform to the constant naming conventions ((([A-Z_][A-Z0-9_]*)|(__.*__))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
2
<style>
3
4
.kydbox {{
5
  border-style: solid;
6
  border-color: #CCCCCC;
7
  border-width: 2px;
8
  margin: 10px;
9
  padding: 5px;
10
  font-family: sans-serif;
11
  font-size: 10pt;
12
}}
13
14
.kydfloatboxleft {{
15
  margin: 5px;
16
  float: left;
17
  border-right-width: 2px;
18
  border-right-style: solid;
19
  border-right-color: #CCCCCC;
20
  padding-right: 5px;
21
}}
22
23
.kydfloatboxright {{
24
  margin: 5px;
25
  float: right;
26
}}
27
28
.kydsubtitle {{
29
  font-size: 10pt;
30
  font-weight: bold;
31
  margin-top: 5px;
32
}}
33
34
.kydpropertylabel {{
35
  font-weight: bold;
36
}}
37
38
td.kydpropertylabel {{
39
  text-align: right;
40
}}
41
42
table.kydbasic_stats,
43
table.kydarray_structure {{
44
  padding-top: 0px;
45
}}
46
47
table.kydbasic_stats td,
48
table.kydarray_structure td {{
49
  padding: 3px;
50
}}
51
52
.kydbottomborder {{
53
  border-bottom-width:2px;
54
  border-bottom-style:solid;
55
  border-bottom-color:#CCCCCC;
56
}}
57
58
</style>
59
60
<div class="kydbox" , style="float:left">
61
62
  <div class="kydfloatboxleft">
63
    <span class="kydsubtitle">Basic Statistics</span>
64
    <table class="kydbasic_stats">
65
      <tr>
66
      <td colspan=4 style='text-align:center'>
67
        <span class='kydpropertylabel'>Mean:</span>
68
        {kyd_class.mean:.{kyd_class.precision}}
69
        &nbsp;&nbsp;&nbsp;&nbsp;
70
        <span class='kydpropertylabel'>Std Dev:</span>
71
        {kyd_class.mean:.{kyd_class.precision}}
72
      </td>
73
      </tr>
74
      <tr>
75
        <td class='kydpropertylabel'>Min:</td>
76
        <td>{kyd_class.min:.{kyd_class.precision}}</td>
77
        <td class='kydpropertylabel'>-99% CI:</td>
78
        <td>{kyd_class.ci_99[0]:.{kyd_class.precision}}</td>
79
      </tr>
80
      <tr>
81
        <td class='kydpropertylabel'>1Q:</td>
82
        <td>{kyd_class.firstquartile:.{kyd_class.precision}}</td>
83
        <td class='kydpropertylabel'>-95% CI:</td>
84
        <td>{kyd_class.ci_95[0]:.{kyd_class.precision}}</td>
85
      </tr>
86
      <tr>
87
        <td class='kydpropertylabel'>Median:</td>
88
        <td>{kyd_class.median:.{kyd_class.precision}}</td>
89
        <td class='kydpropertylabel'>-68% CI:</td>
90
        <td>{kyd_class.ci_68[0]:.{kyd_class.precision}}</td>
91
      </tr>
92
      <tr>
93
        <td class='kydpropertylabel'>3Q:</td>
94
        <td>{kyd_class.thirdquartile:.{kyd_class.precision}}</td>
95
        <td class='kydpropertylabel'>+68% CI:</td>
96
        <td>{kyd_class.ci_68[1]:.{kyd_class.precision}}</td>
97
      </tr>
98
      <tr>
99
        <td class='kydpropertylabel'>Max:</td>
100
        <td>{kyd_class.max:.{kyd_class.precision}}</td>
101
        <td class='kydpropertylabel'>+95% CI:</td>
102
        <td>{kyd_class.ci_95[1]:.{kyd_class.precision}}</td>
103
      </tr>
104
      <tr>
105
        <td>&nbsp;</td>
106
        <td>&nbsp;</td>
107
        <td class='kydpropertylabel'>+99% CI:</td>
108
        <td>{kyd_class.ci_99[1]:.{kyd_class.precision}}</td>
109
      </tr>
110
111
    </table>
112
  </div>
113
114
  <div class="kydfloatboxright">
115
    <span class="kydsubtitle">Array Structure</span>
116
    <table class="kydarray_structure">
117
      <tr>
118
        <td class='kydpropertylabel'>Number of Dimensions:</td>
119
        <td>{kyd_class.ndim}</td>
120
      </tr>
121
      <tr>
122
        <td class='kydpropertylabel'>Shape of Dimensions:</td>
123
        <td>{kyd_class.shape}</td>
124
      </tr>
125
      <tr>
126
        <td class='kydpropertylabel'>Array Data Type:</td>
127
        <td>{kyd_class.dtype}</td>
128
      </tr>
129
      <tr>
130
        <td class='kydpropertylabel'>Memory Size:</td>
131
        <td>{kyd_class.human_memsize}</td>
132
      </tr>
133
      <tr>
134
        <td class='kydpropertylabel'>Number of NaN:</td>
135
        <td>{kyd_class.num_nan}</td>
136
      </tr>
137
      <tr>
138
        <td class='kydpropertylabel'>Number of Inf:</td>
139
        <td>{kyd_class.num_inf}</td>
140
      </tr>
141
142
    </table>
143
  </div>
144
145
</div>
146
"""
147