Skip to content

Commit 6889bd8

Browse files
King-OzymandiasKing-Ozymandias
authored andcommitted
Readme update
1 parent f28451b commit 6889bd8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DataFrame is a tabular data structure for data analysis in [Pharo](https://pharo
1111
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`):
1212

1313
```st
14-
EpMonitor disableDuring: [
14+
EpMonitor disableDuring: [
1515
Metacello new
1616
baseline: 'DataFrame';
1717
repository: 'github://PolyMathOrg/DataFrame:pre-v3/src';
@@ -21,13 +21,23 @@ EpMonitor disableDuring: [
2121
Use this script if you want the latest version of DataFrame:
2222

2323
```st
24-
EpMonitor disableDuring: [
24+
EpMonitor disableDuring: [
2525
Metacello new
2626
baseline: 'DataFrame';
2727
repository: 'github://PolyMathOrg/DataFrame/src';
2828
load ].
2929
```
3030

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+
3141
_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.
3242

3343
## 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
5262

5363
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).
5464

55-
### Creating a data frame
65+
### Creating a data frame
5666

5767
```Smalltalk
5868
weather := DataFrame withRows: #(
@@ -120,6 +130,12 @@ weather transposed.
120130
| **2** | true | true | false | true | true |
121131
| **3** | snow | rain | - | rain | snow |
122132

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+
123139
## Documentation and Literature
124140

125141
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

Comments
 (0)