forked from swcarpentry/web-data-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reference.html
96 lines (96 loc) · 4.79 KB
/
reference.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<title>Software Carpentry: Working With Data on the Web</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="css/swc.css" />
<link rel="alternate" type="application/rss+xml" title="Software Carpentry Blog" href="http://software-carpentry.org/feed.xml"/>
<meta charset="UTF-8" />
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="lesson">
<div class="container card">
<div class="banner">
<a href="http://software-carpentry.org" title="Software Carpentry">
<img alt="Software Carpentry banner" src="img/software-carpentry-banner.png" />
</a>
</div>
<article>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<h1 class="title">Working With Data on the Web</h1>
<h2 class="subtitle">Reference</h2>
<h2 id="getting-data"><a href="01-getdata.html">Getting Data</a></h2>
<ul>
<li>Many sites make data available for download via URLs that are formatted in specific ways.</li>
<li>Use the <code>requests</code> library to download data in Python programs.</li>
</ul>
<h2 id="handling-csv-data"><a href="02-csv.html">Handling CSV Data</a></h2>
<ul>
<li>Use the <code>io</code> library to treat text as input or output files.</li>
<li>Use the <code>csv</code> library to read comma-separated values.</li>
</ul>
<h2 id="generalizing-and-handling-errors"><a href="03-generalize.html">Generalizing and Handling Errors</a></h2>
<ul>
<li>Write tests.</li>
</ul>
<h2 id="visualization"><a href="04-visualize.html">Visualization</a></h2>
<ul>
<li>Use the <code>pyplot</code> library from <code>matplotlib</code> for simple visualizations.</li>
<li>Viewing data is often the first step toward understanding it.</li>
</ul>
<h2 id="publishing-data"><a href="05-makedata.html">Publishing Data</a></h2>
<ul>
<li>Publish data by putting files with predictable names in a publicly-accessible location.</li>
</ul>
<h2 id="making-data-findable"><a href="06-findable.html">Making Data Findable</a></h2>
<ul>
<li>Create a machine-readable index to explicitly tell people what data sets are available.</li>
</ul>
<h2 id="glossary">Glossary</h2>
<dl>
<dt><span id="representational-state-transfer-(rest):">Representational State Transfer (REST):</span></dt>
<dd><p>a set of patterns for sharing data on the web.</p>
</dd>
<dt><span id="comma-separated-values-(csv):">comma-separated values (CSV):</span></dt>
<dd><p>A common textual representation for tables in which the values in each row are separated by commas.</p>
</dd>
<dt><span id="escape-sequence:">escape sequence:</span></dt>
<dd><p>A sequence of characters used to represent another character. For example, the two-letter escape sequence <code>\n</code> represents a newline character in Python, while the multi-letter escape sequence <code>&amp;</code> respresents an ampersand in HTML.</p>
</dd>
<dt><span id="index:">index:</span></dt>
<dd><p>A document or data set that contains information about, and pointers to, actual data sets. An index contains the metadata that makes actual data findable.</p>
</dd>
<dt><span id="silent-failure:">silent failure:</span></dt>
<dd><p>Failing without producing any warning messages. Silent failures are hard to detect and debug.</p>
</dd>
<dt><span id="status-code:">status code:</span></dt>
<dd><p>A numerical value that indicates whether a function or other procedure succeeded, or if it failed, why.</p>
</dd>
<dt><span id="unit-testing-tool:">unit testing tool:</span></dt>
<dd><p>A software library and associated tool or tools that helps programmers write short tests for their code and run them systematically.</p>
</dd>
</dl>
</div>
</div>
</article>
<div class="footer">
<a class="label swc-blue-bg" href="http://software-carpentry.org">Software Carpentry</a>
<a class="label swc-blue-bg" href="https://github.com/swcarpentry/lesson-template">Source</a>
<a class="label swc-blue-bg" href="mailto:[email protected]">Contact</a>
<a class="label swc-blue-bg" href="LICENSE.html">License</a>
</div>
</div>
<!-- Javascript placed at the end of the document so the pages load faster -->
<script src="http://software-carpentry.org/v5/js/jquery-1.9.1.min.js"></script>
<script src="css/bootstrap/bootstrap-js/bootstrap.js"></script>
</body>
</html>