Read Collection (Table) from MongoDB using Python | MongoDB | Python | PyMongo

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

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

  • @Moshie71
    @Moshie71 11 дней назад

    Good post … I followed everything until 08:38 when you started talking about the list_cursor. I’ll watch this again and give this a go. Thanks

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

    it was so so sooooo helpful. thank you very very much

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

    clear audio clear cut knowledge transfer.Thanks

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

    Bro, you're helping me so much , thanks and new suscriber

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

    Great video, from my favorite teacher

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

    Great video. Very helpful showing the pandas dataframe stuff

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

    is there any way to iterate over document in collection and save it as dataframe

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

      Yes, you can. Please check the official documentation for more details.

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

      @@StatsWire I didn't find it in document can you help me with the link

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

      @@abdulazizshaikh2255 I will share with you shortly

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

    thanks!

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 3 года назад

    Collection saved in mongo Db is saved on your system or on server ?

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

      This mongodb is in my system i.e local but if your mongdb is configured on the server then it will be saved on the server.

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

    Thanks bro

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

    Se merece el like, era algo sencillo

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

    Thanks for the video .. i need to compare the Source data in mongoDb and Target (Snowflake ) after ETL i.e is loading into Datawarehouse.

  • @ArunKumar-sg6jf
    @ArunKumar-sg6jf 3 года назад

    if i want to laod large data from mongodb to pyspark how to speed up the process very fasily of readig data and writimg data

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

      You will need more memory to read faster. Your local computer has limited RAM but if you are doing it on server it will be faster because server has more RAM

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

    Is there a convenient way creating pyspark dataframe instead of pandas??

    • @StatsWire
      @StatsWire  2 года назад +1

      Pandas is the easiest way I would say

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

      @@StatsWire yeah, I know but to maintain the consistency, I have to do it with pyspark Or glue dynamic frame 🤦‍♂️🤷‍♂️

  • @krishshah3974
    @krishshah3974 2 года назад +1

    nice

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

    Nice 👍

  • @1UniverseGames
    @1UniverseGames 3 года назад

    How can I write code to show List of Outer Most field from that text documents???

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

      Sorry, I am not getting your point.

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

    am trying in colab its error
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Ravi\\OneDrive\\Desktop\\streamlit\\jagan.csv'

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

      You have to give proper path

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

    Thanks for this informative video can you please CREATE VIDEO ON how can you fetch data batch by batch, instead of fetching all the data using find

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

      You're welcome. Thanks for the suggestion. I can make a video on this soon maybe next week because this week I am occupied.

    • @Umar-lw6nh
      @Umar-lw6nh 2 года назад

      @@StatsWire Did you make this video? please share the url?

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

    How can I display MongoDB collection in an HTML using ajax dataTable?

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

      Hi, Do you find any method

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

      Please refer to the below link on stack overflow
      stackoverflow.com/questions/67730969/need-assistance-with-mongodb-python-html-and-ajax

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

      Please refer to the below link on stack overflow
      stackoverflow.com/questions/67730969/need-assistance-with-mongodb-python-html-and-ajax

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

      ​@@StatsWire This is actually my post on Stack.

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

      @@StatsWire This is actually my post on Stack. But now I need a way to display multiple collections.

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

    nice bell.. too much volume

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

    I tried using the count method in pandas, I keep getting this error;
    AttributeError: 'Cursor' object has no attribute 'count'
    This is the code;
    dw_db = client.doctorwho
    tc = dw_db.test_collection
    tc.insert_one({'name': 'William', 'birthyear': 1908})
    # Insert a few (zip takes some lists and returns a list of tuples)
    for n, b in zip('Patrick Jon Tom Peter Colin Sylvester Paul Christopher David Matt Peter'.split(),
    [1920, 1919, 1934, 1951, 1943, 1943, 1959, 1964, 1971, 1982, 1958]):
    tc.insert_one({'name': n, 'birthyear': b})
    dw_db.tc.find({'name': 'Peter'}).count()

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

      Hello, I think count method is deprecated, use the new method count_documents and let me if you still facing issue

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

      @@StatsWire I used it and still had the same issue