Introduction to Programming with Python: Reading Data from a File

  Рет қаралды 335

Gina Sprint

Gina Sprint

Күн бұрын

This video provides examples of reading data from a file in Python. Specifically, it shows how to open a CSV (comma separated value) file, process its contents, and close the file. The following topics are covered when processing the file contents:
-Read all lines from a file
-Iterate through the file lines
-Split each line into its individual values by using string split() with the comma delimiter
-Store the values in a table format using a 2D list
-Convert the numeric values from string to a numeric type like int or float
This video is the twelfth video in a multi-part series on getting started with the Python programming language. Next video in the series on writing files: • Introduction to Progra...
Source code on Github: github.com/gsp...

Пікірлер: 4
@yassinech7824
@yassinech7824 2 жыл бұрын
Thanks you for such explanation! So elaborative are you going to get into Threading and multiprocessing in the future?
@GinaSprint
@GinaSprint 2 жыл бұрын
Thank you! I will try. I'd like to make a video on the ray library for parallelization 🙂
@yassinech7824
@yassinech7824 2 жыл бұрын
@@GinaSprint Ah ! Thanks I hope so
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
How to Web Scrape using Python and Beautiful Soup
21:50
Gina Sprint
Рет қаралды 695
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 950 М.