File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Exercises for Data Visualization
2
- This repo contains exercises for data visualization module of Data Bootcamp.
2
+ This repo contains exercises for the data visualization module of the LHL Data Bootcamp.
Original file line number Diff line number Diff line change 36
36
},
37
37
"outputs" : [],
38
38
"source" : [
39
- " df=pd.read_csv('https://pynative.com/wp-content/uploads/2019/01/company_sales_data.csv')"
39
+ " # This datasource doesn't allow us to access it directly \n " ,
40
+ " # We need to modify read_csv's user agent \n " ,
41
+ " # Basically, we're accessing as if through a Firefox Browser\n " ,
42
+ " \n " ,
43
+ " url = 'https://pynative.com/wp-content/uploads/2019/01/company_sales_data.csv'\n " ,
44
+ " storage_options = {'User-Agent': 'Mozilla/5.0'}\n " ,
45
+ " df = pd.read_csv(url, storage_options=storage_options)"
40
46
]
41
47
},
42
48
{
43
49
"cell_type" : " code" ,
44
50
"execution_count" : null ,
45
- "metadata" : {
46
- "ExecuteTime" : {
47
- "end_time" : " 2020-04-23T18:18:27.606163Z" ,
48
- "start_time" : " 2020-04-23T18:18:27.594265Z"
49
- }
50
- },
51
+ "metadata" : {},
51
52
"outputs" : [],
52
53
"source" : [
53
54
" df.head()"
151
152
"name" : " python" ,
152
153
"nbconvert_exporter" : " python" ,
153
154
"pygments_lexer" : " ipython3" ,
154
- "version" : " 3.7.9 "
155
+ "version" : " 3.10.6 "
155
156
},
156
157
"toc" : {
157
158
"base_numbering" : 1 ,
You can’t perform that action at this time.
0 commit comments