RECURRENT DONATION
Donate monthly to support
the NeculaiFantanaru.com project
एक ही डोमेन में बाजार पर अन्य की तुलना में इस पुस्तक की आवश्यक विशेषता यह है कि यह उदाहरणों के माध्यम से एक नेता की आदर्श क्षमता का वर्णन करती है। मैंने कभी यह दावा नहीं किया कि एक अच्छा नेता बनना आसान है, लेकिन अगर लोग करेंगे तो...
मैंने यह पुस्तक लिखी है जो एक सरल तरीके से व्यक्तिगत विकास को नेतृत्व के साथ जोड़ती है, बिल्कुल एक पहेली की तरह, जहाँ आपको सामान्य छवि को फिर से बनाने के लिए दिए गए सभी टुकड़ों का मिलान करना होता है।
इस पुस्तक का उद्देश्य आपको ठोस उदाहरणों के माध्यम से जानकारी प्रदान करना है और आपको यह दिखाना है कि दूसरों को चीजों को आपके समान कोण से देखने की क्षमता कैसे प्राप्त करें।
आप यहां पूरा कोड देख सकते हैं:Https: // passatin.com / vk2z v3fj इंस्टॉलपायथन। फिर Windows10 में कमांड प्रॉम्प्ट (सीएमडी) दुभाषिया का उपयोग करके निम्नलिखित दो पुस्तकालय स्थापित करें:
py- m pip install openpyxकोड: किसी भी दुभाषिया कार्यक्रम में नीचे दिए गए कोड को कॉपी और चलाएं(मैं उपयोग कर रहा हूँPyscrcs। import openpyxl #open the bookstore I want to work with
wb_AAA = openpyxl.load_workbook("AAA.xlsx") #open the file in which I import the data
ws_1 = wb_AAA['Date_angajati'] #define the sheet I work with
wb_UI = openpyxl.load_workbook("ttestui.xlsx") #open the file from which I import the data
ws_2 = wb_UI['UI']
sh_obj = wb_UI.active
max_row = sh_obj.max_row
# loop will print all values
# of column1, 2, 4, etc
code2name = {}
for i in range(2, max_row+1):
cell_obj = sh_obj.cell(row=i, column = 4)
# print(cell_obj.value) displays the data in column 4 wb testUI
code2name[sh_obj.cell(row=i, column=1).value]=(sh_obj.cell(row=i, column=4).value, sh_obj.cell(row=i, column=5).value) #associate the search value (vlookup excel) with the definitions in the testUI
print(code2name)
for i in range (2, ws_1.max_row):
print(i)
"""
associate the columns where I import data with the value by which I search for them (vlookup)
get is the equivalent of "iferror"
('','') ...if iferror('value', ''), displays error, in the sense that it searches for the first character out of nothing
[0][1] refers to line 19, the values after =
"""
ws_1.cell(row=i, column=7).value = code2name.get(ws_1.cell(row=i, column=6).value, ('',''))[0]
ws_1.cell(row=i, column=10).value = code2name.get(ws_1.cell(row=i, column=6).value, ('',''))[1]
wb_AAA.save('BBB.xlsx')
उपरोक्त पायथन कोड एक्सेल में "VLOOKUP" सूत्र के बराबर है। यही है, पाइथन के बिना डेटा आयात करने के लिए इस सूत्र का उपयोग करना आसान है। =vlookup(a;table;x;false)
where: a: the value you are looking for
table: the place where you look for a..usually a table
x: the column containing the value you want to return to you
false: set when looking for an absolute value, not a relative one
See the image below:
I search for a code (adik UI), in table x (which I usually keep in another sheet, or workbook), and it brings me the values from columns G and J
vlookup is a left function .... so if the table has the corresponding column on 5 (adik UI), select the table starting with column 5
This is the table from which to retrieve data with vlookup
That's all folks. If you like my code, then make me a favor: SHARE IT. अन्य अजगर कोड: BeautifulSoup या Google Translate API Key यासंस्करण 3यासंस्करण 4यासंस्करण 5 Latest articles accessed by readers:
Donate via Paypal
RECURRENT DONATIONDonate monthly to support SINGLE DONATIONDonate the desired amount to support Donate by Bank TransferAccount Ron: RO34INGB0000999900448439
Open account at ING Bank
|
||||||||||||
![]() |
||||||||||||