Integrating Excel with Python using xlwings

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 18

  • @keitharaneta3465
    @keitharaneta3465 9 місяців тому +1

    one of the best edited and step by step tutorial i have ever seen!

  • @MSavva91
    @MSavva91 2 роки тому +1

    I don't usually leave comments but that was an excellent introduction covering the main essentials, thanks

  • @arpsami7797
    @arpsami7797 3 роки тому +1

    Nice Work!

  • @yvonplancade725
    @yvonplancade725 2 роки тому

    Great thanks. A very very good tuto

  • @lucassantamaria3631
    @lucassantamaria3631 4 роки тому

    Xlwings should be taught at school ! Nice video Hamid

  • @eladiomendez8226
    @eladiomendez8226 9 місяців тому

    Great video thank you !

  • @jcah9619
    @jcah9619 2 роки тому

    Great video! Really appreciate this!!

  • @marcoventura9451
    @marcoventura9451 Рік тому

    Thank You. Is the file TSLA avaiable?

  • @MattLGreer
    @MattLGreer 2 роки тому

    Is the Jupyter Notebook available somewhere?

  • @DewanshiRamani
    @DewanshiRamani 7 місяців тому

    Hello, how to use xlwings server in wsl system step by step instraction

  • @kevintomm8442
    @kevintomm8442 3 роки тому

    Thanks for the video Hamid! Is there a publicly available version of the Jupyter notebook you are using in this video?

    • @kevintomm8442
      @kevintomm8442 3 роки тому

      @@hamidboustanifar6494 thanks so much

  • @rodgarana2953
    @rodgarana2953 2 роки тому

    how do I delete a row ?

  • @sidharthgautam8989
    @sidharthgautam8989 Рік тому +1

    import pandas as pd
    from openpyxl import load_workbook
    # Load the Excel file and sheet
    book = load_workbook('example.xlsx')
    writer = pd.ExcelWriter('example.xlsx', engine='openpyxl')
    writer.book = book
    writer.sheets = {ws.title: ws for ws in book.worksheets}
    existing_data = pd.read_excel(writer, 'Sheet1')
    # Append new data to the existing data
    new_data = pd.DataFrame({'col1': [1, 2, 3], 'col2': [4, 5, 6]})
    all_data = pd.concat([existing_data, new_data])
    all_data.to_excel(writer, index=False, header=True, sheet_name='Sheet1')
    # Save the changes
    writer.save()

  • @uliseslopezvenegas1572
    @uliseslopezvenegas1572 3 роки тому +1

    Help, I have the following code: List_of_values ​​= BarcodeData
    wb = xw.book ('Records.xlsm')
    ws = wb.sheets ['INCOME']
    ws.range ('A3) .value = list_of_values
    wb.save ()
    I am reading the data from a QR code reader, so when it is read it sends me the data to an excel sheet, but in the part ('A3') I am indicating that in that cell I put the value read. What I want to do is that every time a code is read, I enter it in different cells, that is; The first read in A3, the second read in A4, the third read in A5 and so on, how can I change that line? I already tried with (A3: A10) and from A3 to A10 it gives me the same value.

    • @screwbaba
      @screwbaba 2 роки тому

      have you found the solution to this? i am facing similar issue, if you have found solution please help. TIA

  • @Maldive177
    @Maldive177 2 роки тому

    To be honest, not too sure what's point of using this Xlwings, like what exactly that Xlwings can do better than VBA?