Skip to content

Commit 4e12d0d

Browse files
committed
Minor changes
1 parent 90e966a commit 4e12d0d

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

docs/05-dataframes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ df2 = pd.DataFrame(
136136
index=genes,
137137
columns=samples
138138
)
139-
print(df)
139+
print(df2)
140140
```
141141
---
142142

docs/06-subsetting.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ m = np.arange(1, 51).reshape((10, 5))
3131

3232
df = pd.DataFrame(
3333
m,
34-
index=["A","B","C","D","E","F","G","H","I","J"],
35-
columns=["cat", "dog", "pig", "cow", "chicken"]
34+
index=["GATA1", "SPI1", "RUNX1", "CEBPA", "TAL1",
35+
"MPO", "KIT", "CD34", "LYZ", "IL7R"],
36+
columns=["LTHSC_1", "LTHSC_2", "MEP_1", "MEP_2", "GMP_1"]
3637
)
3738

3839
df
@@ -62,7 +63,7 @@ Specific elements:
6263
df.iloc[2, 3]
6364
```
6465

65-
Slice rows 3 to 7 (7 is excluded):
66+
Slice rows 3 to 8 (8 is excluded):
6667

6768
```python
6869
df.iloc[2:7, :]

docs/08-io.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ https://github.com/sccbioinformatics/Python_programming_1/blob/main/Mouse_HSPC_r
4646
# Reading a table
4747

4848
```python
49+
url = "https://raw.githubusercontent.com/shambam/R_programming_1/main/Mouse_HSPC_reduced.txt"
4950
hspc_data = pd.read_csv(
50-
"Mouse_HSPC_reduced.txt",
51+
url,
5152
sep="\t",
5253
header=0,
5354
index_col=0

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Install Miniconda from the official instructions:
2424

2525
- Miniconda download + install guide: https://www.anaconda.com/docs/getting-started/miniconda/main
2626

27+
**Hint** On windows the easiest is to using winget on the command line:
28+
- Open a terminal and install using ``winget install Miniconda3 Python.Python.3.10 ``
29+
30+
31+
2732
After installation, open a terminal.
2833

2934
---
@@ -36,6 +41,12 @@ Create an environment (one time):
3641
conda create -n quarto.env python=3.10
3742
```
3843

44+
**Windows**
45+
```
46+
cd ~
47+
.\miniconda3\_conda.exe create -n quarto.env python=3.10
48+
```
49+
3950
Activate it:
4051

4152
```bash

0 commit comments

Comments
 (0)