2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								id: 5e9a093a74c4063ca6f7c161
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								title: Introduzione alla lettura dei dati
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								challengeType: 11
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								videoId: cDnt02BcHng
							 
						 
					
						
							
								
									
										
										
										
											2021-10-18 08:17:43 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								bilibiliIds:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  aid: 548023524
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  bvid: BV1Nq4y1K7iV
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  cid: 409020187
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								dashedName: reading-data-introduction
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --description--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*Invece di usare notebooks.ai come mostrato nel video, puoi usare Google Colab.*
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Altre risorse:
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-18 08:17:43 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-    [Notebook su GitHub ](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas ) 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-    [Come aprire Notebooks da GitHub usando Google Colab. ](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb ) 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --question--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --text--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Dato un file chiamato `certificates.csv`  con questi contenuti:
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< pre >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Name$Certificates$Time (in months)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Tom$8$16
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Kris$2$5
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Ahmad$5$9
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Beau$6$12
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / pre >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 22:22:21 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Riempi gli spazi vuoti per gli argomenti mancanti qui sotto:
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```py
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import csv
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								with open(__A__, 'r') as fp:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    reader = csv.reader(fp, delimiter=__B__)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    next(reader)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    for index, values in enumerate(reader):
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        name, certs_num, months_num = values
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        print(f"{name} earned {__C__} certificates in {months_num} months")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --answers--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A: `'certificates.csv'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								B: `'-'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								C: `values` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A: `'certificates.csv'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								B: `'$'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								C: `certs_num` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A: `'certificates'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								B: `'$'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								C: `certs_num` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --video-solution--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								2