Commit 5692deb 1 parent 66c300b commit 5692deb Copy full SHA for 5692deb
File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ website:
7
7
left :
8
8
- href : index.qmd
9
9
text : Home
10
+ - text : Python Guides
11
+ menu :
12
+ - text : Data Management
13
+ href : dataManagement.qmd
10
14
- text : Links
11
15
menu :
12
16
- text : Lab Wiki
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ format:
15
15
16
16
# Import Data {#importData}
17
17
18
- Importing data takes syntax of the following form for ` .csv ` files:
18
+ Importing data using ` pandas ` takes syntax of the following form for ` .csv ` files:
19
19
20
20
``` {python}
21
21
#| eval: false
@@ -24,3 +24,21 @@ import pandas as pd
24
24
25
25
data = pd.read_csv("filepath/filename.csv")
26
26
```
27
+
28
+ Below, I import a ` .csv ` file and save it into an object called ` mydata ` (you could call this object whatever you want):
29
+
30
+ ``` {python}
31
+ #| eval: false
32
+
33
+ import pandas as pd
34
+
35
+ data = pd.read_csv("https://osf.io/s6wrm/download")
36
+ ```
37
+
38
+ ``` {python}
39
+ #| include: false
40
+
41
+ import pandas as pd
42
+
43
+ data = pd.read_csv("data/titanic.csv") #https://osf.io/s6wrm/download
44
+ ```
Original file line number Diff line number Diff line change 2
2
title : " Website"
3
3
---
4
4
5
- This is a Quarto website.
6
-
7
- To learn more about Quarto websites visit < https://quarto.org/docs/websites > .
5
+ - [ Data Management] ( dataManagement.html )
You can’t perform that action at this time.
0 commit comments