In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article analyzes "how to extract data from a complex format of Excel". The content is detailed and easy to understand. Friends who are interested in "how to extract data from Excel with complex format" can follow the editor's idea to read it slowly and deeply. I hope it will be helpful to you after reading. Let's learn more about "how to extract data from Excel with complex format" with the editor.
It takes a lot of work to program in a programming language to solve this kind of problem. And because the format of many EXCEL files is irregular, the program written is not universal, and it is very troublesome to rewrite a new program every time to deal with new requirements.
If you use the aggregator SPL, it will be much easier to deal with such problems. It has carefully designed a set of function libraries in the field of set operations, which makes it more flexible and efficient to deal with Excel files; at the same time, SPL is a script for interpretation and execution, and it is easy to swap to adapt to new requirements. For example, to deal with such a scenario: the file employe.xlsx format is shown as follows:
The structured effect is shown in the following figure:
The aggregator SPL can be done with just a few lines, with the following code:
A
B
C
one
= create (ID,Name,Sex,Position,Birthday,Phone,Address,PostCode)
two
= file ("employe.xlsx") .xlsopen ()
three
[C,C,F,C,C,D,C,C]
[1,2,2,3,4,5,7,8]
four
For
= A3. (~ / B3 (#)). (eval ($[A2.xlscell (] / ~ / ")
five
If len (B4 (1)) = = 0
Break
six
> A1.record (B4)
seven
> B3=B3. (~ + 9)
There are a lot of similar structural problems, and it's easy to use the aggregator SPL.
The aggregator is also a professional tool for file data source processing, which can easily carry out mixed calculation, storage and export of all kinds of file data, such as TXT, Excel, Xml, Json, CSV, ini and so on. Desktop-level computing tools, ready-to-use, simple configuration, perfect debugging functions, can set breakpoints, single-step execution, and the results of each step can be viewed. The syntax is simple, in line with people's natural thinking, and is simpler than other high-level development languages.
On how to extract data from the complex format of Excel to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.