How to read CSV files with Python #1 - Without using python libraries

preview_player
Показать описание
CSVs are plain text files that use specific structures to store data. Even though they are very simple to read, sometimes dealing with CSVs can be annoying and full of errors.

In this tutorial, we are going to learn about reading CSV files using Python without the use of any libraries. We are also going to look at some advantages and disadvantages of the method.
Рекомендации по теме
Комментарии
Автор

Just started learning python recently, this is my first programming language. This video helped me a lot, thanks :) Subscribed and will keep following, cheers!

kaneyxx
Автор

Cool stuff, although you should have closed the file with "csv_file.close()" because that leaves the handle open. Other option would have been to use the "with" statement as context manager.

raprpy
Автор

I have a challenge, my sensor collects data continuously and i want to export them to csv file. I place my csv export code under the while loop of my sensor reading, after the first reading, it returns an error that writer object is not iterable. How do i fix this problem

ayomikunsamuel
Автор

Really helpful for my project.
I'm writing a ml model of the naive Bayes class, and my project supervisor ask me to build from scratch

thestorm
Автор

Bhai agar mughe bas ek hi row print/show krwaani hogi to?
Please reply 🙏

SteveRogers...
Автор

cool explanation, everyone can understand

keerthiganesh
Автор

Hello sir is data ko tabular from chaiye tho kaise kare

aartipawar
Автор

your content is great, but what got you my subsciption is that dope-ass jacket you wearing in the beginning of the video. But for real, great content.

josephtran
Автор

Hi Lenin, regarding data cleaning > lets say we have a csv file and we are using pandas and dataframes to read the data in this csv file and then clean it. So the columns have currency amounts as $120, 000 and so on in one column. Also some fields have $0 where there is no amount entered. How do i clean these two things(the prefix $ from each amount and the useless $0 figures) from the entire csv file? am trying out with dataframe.replace and dataframe.drop kind of methods but getting mixed results. What would be the best way to do this in your own work experience? hope you will take the time to answer this.. thanks... madhur

madhurcapital
Автор

Your code does not work if there is a comma in the text itself other the than comma that separates columns as .split(', ') will consider comma in the text as delimiter too.

amrityapradeep
Автор

Hello I need help regarding CSV pls consider it

ashok_reddy.
Автор

if possible can you do a complete data engineering tutorial ?

keerthiganesh
Автор

How to create a CSV file in python without using python library

harshkhot