티스토리 뷰

SWDesk

[Python] GoogleSpread 테스트

inhae 2022. 8. 7. 18:31

 

def TestSpread01():
    from BGoogleDrive import bGoogleSpread
    from pandas import DataFrame

    data1DF = DataFrame()
    data1 = {
        'k1': "V1",
        'K2': "V2"
    }
    data1DF = data1DF.append(data1, ignore_index=True)

    #bGoogleSpread.WriteSpread(data1DF, 'Test220803', "TestSheet01")
    data2DF = bGoogleSpread.ReadSpread('Test220803', "TestSheet01")
    print(data2DF)

<출력>

   K2 k1
1 V2 V1
반응형