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
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ DataFrame is a tabular data structure for data analysis in [Pharo](https://pharo
11
11
To install the latest stable version of DataFrame (`pre-v3`), go to the Playground (`Ctrl+OW`) in your Pharo image and execute the following Metacello script (select it and press Do-it button or `Ctrl+D`):
Use this script if you want the latest version of DataFrame:
22
22
23
23
```st
24
-
EpMonitor disableDuring: [
24
+
EpMonitor disableDuring: [
25
25
Metacello new
26
26
baseline: 'DataFrame';
27
27
repository: 'github://PolyMathOrg/DataFrame/src';
28
28
load ].
29
29
```
30
30
31
+
If you'd be interested in (basic, read-only for now) SQLite support, use `load: 'sqlite'` at the end:
32
+
33
+
```st
34
+
EpMonitor disableDuring: [
35
+
Metacello new
36
+
baseline: 'DataFrame';
37
+
repository: 'github://PolyMathOrg/DataFrame/src';
38
+
load: 'sqlite' ].
39
+
```
40
+
31
41
_Note:_`EpMonitor` serves to deactive [Epicea](https://github.com/pharo-open-documentation/pharo-wiki/blob/3cfb4ebc19821d607bec35c34ee928b4e06822ee/General/TweakingBigImages.md#disable-epicea), a Pharo code recovering mechanism, during the installation of DataFrame.
32
42
33
43
## How to depend on it?
@@ -52,7 +62,7 @@ A data frame is like a database inside a variable. It is an object which can be
52
62
53
63
In this section I show a very simple example of creating and manipulating a little data frame. For more advanced examples, please check the [DataFrame Booklet](#dataframe-booklet).
54
64
55
-
### Creating a data frame
65
+
### Creating a data frame
56
66
57
67
```Smalltalk
58
68
weather := DataFrame withRows: #(
@@ -120,6 +130,12 @@ weather transposed.
120
130
|**2**| true | true | false | true | true |
121
131
|**3**| snow | rain | - | rain | snow |
122
132
133
+
### Load data from SQLite query:
134
+
```st
135
+
"If you have a connection ready in conn"
136
+
df := DataFrame readFromSqliteCursor: (conn execute: 'SELECT * FROM table').
137
+
```
138
+
123
139
## Documentation and Literature
124
140
125
141
1.[Data Analysis Made Simple with Pharo DataFrame](https://github.com/SquareBracketAssociates/Booklet-DataFrame) - a booklet that serves as the main source of documentation for the DataFrame project. It describes the complete API of DataFrame and DataSeries data structures, and provides examples for each method.
0 commit comments