2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								id: 5e9a093a74c4063ca6f7c162
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 16:05:37 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								title: Lettura di dati CSV e TXT
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								challengeType: 11
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								videoId: ViGEv0zOzUk
							 
						 
					
						
							
								
									
										
										
										
											2021-10-18 08:17:43 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								bilibiliIds:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  aid: 505575354
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  bvid: BV1tg411c7GH
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  cid: 409020451
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								dashedName: reading-data-csv-and-txt
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# --description--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-19 16:05:37 +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 16:05:37 +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 16:05:37 +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 16:05:37 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Come faresti per importare il file CSV `data.csv`  e salvarlo in un DataFrame usando il modulo Pandas?
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 00:49:18 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --answers--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```python
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import pandas as pd
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								df = pd.csv("data.csv")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```python
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import pandas as pd
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								df = pd.read_csv("data.csv")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```python
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import pandas as pd
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								pd.read_csv("data.csv")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```python
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								import pandas as pd
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								df = pd.csv_reader("data.csv")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## --video-solution--
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								2