CSV Files in Python || Python Tutorial || Learn Python Programming

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 448

  • @Socratica
    @Socratica  2 года назад +7

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

  • @NeoGhiofish
    @NeoGhiofish 4 года назад +159

    Socratica. @3:45 saved my ass during my job interview Monday. I had to convert a text file with garbled data to a file that could be opened in Excel. I usually use Linux so I was mortified when I discovered that it was inserting blank lines after each row in the file. Then I remembered this video that I watched while cramming for the interview. They left a voicemail last night, saying they had "good news."
    Thank you so much.

    • @jetaimemina
      @jetaimemina 4 года назад +15

      @ehud kotegaro No, but he did find out that Jesus was born!

    • @gauravnegi4312
      @gauravnegi4312 4 года назад

      @@jetaimemina lmfao! great comment.

  • @Socratica
    @Socratica  4 года назад +108

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

    • @equitymonk34
      @equitymonk34 4 года назад +4

      absolutely superb explanations on all videos and we will love to see more such videos.

    • @krishnathakur2138
      @krishnathakur2138 2 года назад

      Please do a little graphics but i loved the explaination

  • @brutalbutler
    @brutalbutler 5 лет назад +245

    Felt like im getting debriefed for an MI5 mission

  • @guiray2000
    @guiray2000 6 лет назад +9

    I went through about 20 Python tutorial sites to try to figure out how to just read a CSV file and still was confused (I am a programmer but new to Python). Then I discovered this video. It was one of the best presentations ever and very clear and exactly what I needed to know. It was also very futuristic like an intelligent robot on a spaceship giving instructions. So very well done indeed!

  • @pravin8419
    @pravin8419 6 лет назад +37

    Best mix of humor with mournful and melancholic voice to deliver substance. In short, what a lovely video with great information

  • @AnkitBindal97
    @AnkitBindal97 7 лет назад +13

    she's definitely one of the coolest python teachers on RUclips. loved the way she teaches python.. keep making more tutorials

  • @ronimiguel
    @ronimiguel 7 лет назад +290

    Best presentation I've ever seen, I felt like I was in the future. Thanks

    • @Nasreddiin
      @Nasreddiin 5 лет назад +2

      In the future? The future will be without machine...

    • @spencerjames9417
      @spencerjames9417 4 года назад

      @@Nasreddiin bet

    • @ulysses1904
      @ulysses1904 4 года назад +5

      I felt like I was in 1967's cliched vision of the future. Regardless, the content is great.

    • @Zook919
      @Zook919 3 года назад

      Dude, I swear I felt the same... lol

    • @mviktor21
      @mviktor21 2 года назад

      Socratica teaches as all learning videos must be, emphatetic but simple, to the point.

  • @KapilMarwaha
    @KapilMarwaha 5 лет назад +18

    "With big data comes big responsibility !"
    ... you are just wow!

  • @Socratica
    @Socratica  4 года назад +28

    Welcome to Socratica! You can see our entire Python Playlist here: bit.ly/PythonSocratica
    Subscribe to see all our new videos! bit.ly/SocraticaSubscribe

    • @abhishekbhandari2203
      @abhishekbhandari2203 4 года назад +2

      ma'am, can you please tell?
      If I want to change the order of the data with respect to date, then what should we do? for example:- If I want to change the order like the data with odd date will come first or any random order. please help.

    • @evergriven7402
      @evergriven7402 4 года назад

      Thank you for the videos ..Great Quality!! I love the tome in which you present the information .. Liked and subscribed

  • @Socratica
    @Socratica  4 года назад

    We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter

  • @Socratica
    @Socratica  4 года назад

    Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter

  • @PrestonBannister
    @PrestonBannister 7 лет назад +79

    From back-of-mind: You should be cast in the next Tron movie. :)

    • @EmileAI
      @EmileAI 6 лет назад

      Preston Bannister there won’t be another one

    • @arthurnonimus
      @arthurnonimus 5 лет назад

      @@EmileAI Just wait.....

    • @dirkmcnasty8585
      @dirkmcnasty8585 5 лет назад

      @@EmileAI yep, it was turned TROFF now... :(

  • @aws96314
    @aws96314 7 лет назад +132

    the presentation is superb

    • @TheNsn666
      @TheNsn666 7 лет назад +8

      future of learning is by games and things that looks like games.

    • @zbzb-ic1sr
      @zbzb-ic1sr 7 лет назад +8

      Better than a lot of paid tutorials.

    • @shobharoy2033
      @shobharoy2033 7 лет назад +5

      Exactly my opinion, better than Lynda and Udemy

  • @onecanina
    @onecanina 7 лет назад +53

    Thank you so much for the tutorials. These are excellent and so fun to watch. One suggestion, if possible, try not having the codes written on the very bottom of the video screen. When pausing the video to follow the steps and copy the codes the loading bar will appear and block the content. it is not even a problem, but I guess this could help the viewers trying to copy the codes =)

  • @ademolaorolu5930
    @ademolaorolu5930 6 лет назад +4

    You will never stop to amuse me with your use of words. The video is concise and precise.

  • @ryanvb3452
    @ryanvb3452 6 лет назад

    This Python series deserves a RUclips channel of its own. Please make more videos.

  • @BryanTyner
    @BryanTyner 6 лет назад +10

    Great tutorials! Simple tip for accessibility: Avoid using the bottom 1/10th of the video window, as it will be covered by closed captions. With captions on, I can't see the code, arrows, and other content you're describing. Keeping content above the bottom 1/10th of the video window improves accessibility for users with hearing impairments and those who aren't fluent English speakers.

    • @jessicabrock3220
      @jessicabrock3220 5 лет назад

      Bryan Tyner also, I would suggest not to use the top 1/10 of the window. RUclips places links for suggested videos there.

  • @gordontang7837
    @gordontang7837 4 года назад +7

    "with big data, comes big responsibility" that was the funniest line

  • @Helen-lm6bb
    @Helen-lm6bb 6 лет назад +39

    lol this video is so dramatic... I love it!

    • @dabbrill4609
      @dabbrill4609 5 лет назад +1

      Right? It's like the telenovela version of a programming guide.

  • @naveedhunzai
    @naveedhunzai 4 года назад +2

    In love with Python because of You Socratica, May you live forever in the realms of Big Data :)

  • @igorthelight
    @igorthelight 4 года назад +9

    "Personally, I would've chosen a different name for a class. But I'm only a singleton".
    Superb! :-)

    • @igorthelight
      @igorthelight 4 года назад

      @Paritosh Jadhav Oops! My mistake :-)

  • @darkguardian1314
    @darkguardian1314 4 года назад +38

    Cortana's weird sister. 🤣
    The instructor is an an actor listed in IMDB.

    • @jesalgandhi
      @jesalgandhi 4 года назад

      That's because she's an actor lol

    • @jhtrico1850
      @jhtrico1850 3 года назад

      I thought she was an AI

  • @collardwe1
    @collardwe1 6 лет назад +8

    Ulka Simone Mohanty you are one of the best teachers in the world. Your style and clear explanations make the learning experience one of the best I have ever had. Thank you very much

    • @silversolver7809
      @silversolver7809 5 лет назад +1

      She does a great voice-over, very convincing as if she knew the material.

    • @CarbonsHDTuts
      @CarbonsHDTuts 2 года назад

      @@silversolver7809 I think it's because she does know the material, her twitter says shes a comp-sci geek

    • @silversolver7809
      @silversolver7809 2 года назад

      @@CarbonsHDTuts :) I was just poking fun at the text-to-speech delivery.

  • @disneykidzshowhd4377
    @disneykidzshowhd4377 5 лет назад +1

    I hope 20 years from now, all youtube videos are all like this one. This is 20 years to the future.

  • @frankkoslowski6917
    @frankkoslowski6917 5 лет назад +2

    A good presentation is one thing. When it stimulates further self motivated research; then it becomes excellent.

  • @QuarktaschemitSenf
    @QuarktaschemitSenf 2 года назад

    hahaha the presentation 🙂
    *dramatic tone* "Get ready to look at values, that have been seperated....*dramatic pause* by commas".
    Funny, entertaining and educational. Good job!

  • @riskyrun
    @riskyrun 3 года назад

    Your mission:Should you choose to save the world.Or just save it in a CSV format.Love these videos.

  • @mahajanravish
    @mahajanravish 7 лет назад +30

    ha ha 😅 really good. Your way of teaching is different and exceptional.

  • @essuede
    @essuede 5 лет назад

    if all subjects in school were presented in a unique way like this, it would make things much more interesting and attainable.
    thank you for this.

  • @MoSec9
    @MoSec9 4 года назад

    I usually hate robot narration, but this may just be the sexiest robot ever. I can't get enough of this. On a more serious note, GREAT job! and thank you!

  • @wuersen
    @wuersen 2 года назад

    Girl you rock and you need your own Stand up Comeday show!!!

  • @gmccalip
    @gmccalip 5 лет назад

    Best resource on this that I have found. Outstanding job of presenting a simple, yet robust method to handle CSVs.
    I did have one minor glitch, an error message about "file = open(path, newline='')"
    The solution is "file = open(path,'rU')" # the U is uppercase.

  • @abdulhamidyusuf2848
    @abdulhamidyusuf2848 5 лет назад +3

    every time she says RUN i hear the music in my head 😹, TBH the content is charming, thank you.

  • @PunmasterSTP
    @PunmasterSTP 3 года назад

    CSV? More like CS-yee...haw! Another phenomenal Python video from Socratica!

  • @osein8900
    @osein8900 Год назад

    the best educational video I have ever seen in youtube
    thanks a bunch

  • @mindsetnuggets
    @mindsetnuggets 6 лет назад +2

    My oh my!! This is out of this world tutorial. Best presentation ever. I have subscribed so that I know what I should know but don't know or could know if I didn't subscribe.

  • @xxxyyy5983
    @xxxyyy5983 2 года назад

    I love these tutorials. They remind me of the old C&C games.

  • @vladimirignatov2121
    @vladimirignatov2121 7 лет назад

    As far as i can understand the main goal of this tutorial is a demonstration of advantages of the csv-module over general python's method of reading csv-files. More precisely you declare that the csv-module can parse csv-file and manage exceptions more robust than the general method. But all that you demonstrate for csv-module can be implemented by general python's file reading ways equally. You doesn't demonstrate by examples what exactly can do csv-module that couldn't do general python's file reading techniques.
    In the rest very good, clear, creative and visually attractive tutorial.

  • @-x-dx7295
    @-x-dx7295 6 лет назад

    Un grand merci d'Aix les Bains en France. Vos vidéos sont simples, claires et précises. Idéales pour le débutant que je suis.🙏

  • @elghark
    @elghark 5 лет назад

    Starting from 00:49 .... that music in background simply great!

  • @tawhidshahrior8804
    @tawhidshahrior8804 2 года назад

    this is the coolest tutorial i have ever come across.

  • @uploader3371
    @uploader3371 7 лет назад

    I liked how fast the video goes. I paused and go back, but it's great to have a lot of info in short videos.
    LOL, the voice sounds so strict and seems like a sci-fi movie. haha

  • @thecodinghustle1006
    @thecodinghustle1006 5 лет назад +2

    i absolutely love her presentation! and team socratica too

  • @coffeeisthepathtovictory1290
    @coffeeisthepathtovictory1290 3 года назад

    LOVE this intro, it reminds one of the game Command and Conquer Tiberian sun with those video cut scenes ❤

  • @asoftraiden
    @asoftraiden 7 лет назад

    Best girl of socratica.. please make more programming courses.. make it more advanced.

  • @narsinghyadav1071
    @narsinghyadav1071 3 года назад

    I'd love more Python from Socratica

  • @freakindividual
    @freakindividual 7 лет назад

    omg straight to the point tutorial with a practical example what will make my job easier. no noise what so ever. outstanding channel. thank u

  • @eduardolopes243
    @eduardolopes243 4 года назад +2

    import pandas as pd
    data = pd.read_csv("/path/to/file.csv") #enjoy!
    great video though

  • @TheBontenbal
    @TheBontenbal 4 года назад

    I love the socratica movies!
    However, if you just want to show the data prettytable is also a nice option:
    from prettytable import from_csv
    csv_file = open('google_stock_data.csv')
    print(from_csv(csv_file))

  • @faroukhasnaoui5097
    @faroukhasnaoui5097 4 года назад

    I repeated this video 2 times, it's a very important lesson, Thank you.

  • @aryanmn1569
    @aryanmn1569 5 лет назад +3

    reporter: Why you want become rich?
    me: To donate and force Socratica them make more vids!

  • @FuZhixiang
    @FuZhixiang 6 лет назад

    Having watched many videos, I find this one is helpful and straightforward.

  • @cjstevens6405
    @cjstevens6405 4 года назад +1

    If you get "SyntaxError: (unicode error)" when defining 'path' (as I did), try replacing each single slash \ with a double slash \\. This makes it a *raw* string, and this worked for me.

    • @minh_tien3911
      @minh_tien3911 4 года назад

      i also get "syntax error" althrough i did like you. can you help me?

    • @captainfuture2882
      @captainfuture2882 4 года назад

      @@minh_tien3911 Please post your line, maybe I can help.

  • @piotrbienkowski1095
    @piotrbienkowski1095 5 лет назад

    I was not sure why I like this lady teaching us Python. But then it clicked on me: she reminds me of Shaw from the Person of Interest! :-)

  • @mheermance
    @mheermance 5 лет назад

    Working with dates and times is a delicate affair in any language. Especially when building client server systems that span time zones! Throw in countries with different DST rules, even though they're at the same line of longitude. For the finishing touch I dare you to find out the time in Arizona!

  • @sagarghait2760
    @sagarghait2760 5 лет назад

    I thought, I was watching a movie.. great tutorial to Learn...the way of presentation is so good 🤗

  • @raissabenoccithibes3768
    @raissabenoccithibes3768 4 года назад +1

    This is an amazing job you guys have been doing! So great to learn!
    Thank you so much for helping me to go towards Data Science!

  • @GEScott71
    @GEScott71 5 лет назад

    Very helpful, I needed to read and then write csv files and this tutorial helped me write my first useful program!

  • @MrAviaportal
    @MrAviaportal 4 года назад

    I just ran this video once again in case i did not understand something...I did not even on the second time.......but i damn love that voice

  • @siddharthramachandran2221
    @siddharthramachandran2221 5 лет назад

    Why is there no separate python playlist...
    Absolutely love these videos
    Would love if better all videos were there in a playlist

    • @Socratica
      @Socratica  5 лет назад

      There is a Socratica Teaches Python playlist!
      Here it is: bit.ly/PythonSocratica

  • @ubermensch5472
    @ubermensch5472 4 года назад

    wow, you are one serious teacher

  • @pravarsharma
    @pravarsharma 4 года назад

    Woww now that's something i never expected.. You got a subscriber🤩

  • @mtcondie
    @mtcondie 6 лет назад +1

    This is the first video I have watched of the python series and I am only 22 seconds in to the video. But, I feel like this video is a mission briefing in a video game cut scene. also, I am picking up a very seven of nine vibe. lol.

  • @ravengwo
    @ravengwo 4 года назад +1

    for Windows the line: file=open(returns_path, 'w') should have newline=' ' parameter as well, as without it the new CSV has blank lines between records

  • @Wibblium
    @Wibblium 7 лет назад +3

    The ISO standard date format is the least esoteric date format out there! (YYYY-MM-DD)

  • @oinn6216
    @oinn6216 4 года назад

    Amaizing video format. The best I've seen. I'm continue watching even I'm not a python dev :D

  • @plaifaha.2674
    @plaifaha.2674 7 лет назад

    I found solution to remove quotes from each row, I was finding this video. Thank you very much!

  • @juliastovall5749
    @juliastovall5749 7 лет назад

    this is the best utube video I have ever seen

  • @user-kp5ps7gj8b
    @user-kp5ps7gj8b 2 года назад

    Very Unique way to create tutorial.. Great Job.

  • @julzbuzz7243
    @julzbuzz7243 2 года назад

    She is ADDICTIVELY Amazing🤞

  • @Julio-uq1ie
    @Julio-uq1ie 6 лет назад +1

    Love at python vids from Socratica.

  • @pusac5697
    @pusac5697 7 лет назад +2

    ... if you had only subscribed... genious!

  • @timothy8428
    @timothy8428 5 лет назад +1

    And here's me parsing CSVs by hand. Of course there's a CSV module because of course there is.

  • @alamagha2039
    @alamagha2039 6 лет назад

    You are a magic to my intellectual development.

  • @rahulpandey974
    @rahulpandey974 4 года назад

    really liked it , I am a beginner here
    thanks for these

  • @asoftraiden
    @asoftraiden 7 лет назад

    Ridiculously beautiful tutorial.

  • @goufsunchannel5800
    @goufsunchannel5800 3 года назад

    Its like future AI ..amazing . keep it up 👍

  • @subhadipml
    @subhadipml 5 лет назад

    New presentation ......first time seen ..thanks ..best explanation

  • @mukhitdinkakenov3238
    @mukhitdinkakenov3238 5 лет назад

    Thank you a lot for the provided tutorial. Saved much time to understand, how the current things work.

  • @akramsystems
    @akramsystems 7 лет назад +10

    if you're using python 2.7 the newline=' ' wont work, instead add import io dependency and use io.open() instead of open()

  • @powerhour4602
    @powerhour4602 5 лет назад +1

    22 seconds in and wishing Lynda.com would redo all their tuts like this lmao. So reminiscent of Command and Conquer.

  • @paguerchanel
    @paguerchanel 4 года назад

    This video format is amazing!!!

  • @sravanbob
    @sravanbob 7 лет назад

    advance teaching great lessons like a sci-fi movie style tutorials grt work !!!

  • @joshambush8574
    @joshambush8574 6 лет назад +2

    oh god this has such a hackery vibe. love it lol

  • @MarsVlogSoon
    @MarsVlogSoon 7 лет назад +39

    expecting more video tutorials on python

  • @venutekmal9878
    @venutekmal9878 5 лет назад

    Great work Socratica , really excellent presentation on python and stock returns process

  • @maslak
    @maslak 5 лет назад

    Hey Socratica, I absolutely adore your videos, and Ulka is perfect in her role.
    May I suggest one thing regarding the "open"? It's a good practice to close the file after usage, but even better is to use '''with open(fileName, "wb") as file:'''
    it closes the file at the end of indentation by itself so you don't have to worry about it :)

  • @gedtoon6451
    @gedtoon6451 2 года назад

    Great video, but you did not close the file when you were done with it?

  • @cryingkelp
    @cryingkelp 4 года назад

    This channel is awesome and this video was extremely helpful. Thank you!!

  • @seosamhohaodha3040
    @seosamhohaodha3040 4 года назад

    awesome tutorials, really looking forward to seeing a lot more of yalls work you guys obviously work very hard to achieve this level of quality,

  • @niueanlaho
    @niueanlaho 4 года назад

    I love your voice.......it should be used on more apps or GPS.......

  • @ezequielgallo1961
    @ezequielgallo1961 5 лет назад

    Saved my life! Thank you so much!! Furthermore It is so inspiring. What a legend!!

  • @jursamaj
    @jursamaj Год назад

    I realize you wanted to demonstrate the strftime function, but I feel year-month-day *is* the reader friendly format. Just needed to get rid of the useless time part.

  • @DanielPizarro184
    @DanielPizarro184 2 года назад

    best python channel

  • @vcloudlabgroup6421
    @vcloudlabgroup6421 5 лет назад

    I came across this channel liking it for some of the initial videos. However, my test of teaching python is teaching how the arguments are passed in python: by reference, by value, or another model. Do you have a video on that please?

  • @swannschilling474
    @swannschilling474 2 года назад

    Always a pleasure!! 🥰

  • @siki3702
    @siki3702 3 года назад

    I am in love with this baji♥️

  • @zeyadramadan8759
    @zeyadramadan8759 4 года назад

    Really like your videos. Always to the point.

  • @mrmuranga
    @mrmuranga 6 лет назад

    Very useful as usual...however the path for the stock data file
    seems to have changed or removed for those who want to follow along