Okay, I hope you're enjoying the course so far.
Here's an exercise that'll give you a chance to do
some data wrangling using the XLRD module in Python.
What I'd like you to do here, is read through
the aircot hourly load file. This file here, and report the time stamp,
which is stored in this column, and load for the min, max, and
average values from this column. From the coast region of Texas. Let's
quickly take a look at the code provided. What I'd
like you to look at first are the assertions here
at the bottom. This gives you an idea for the
type of values you need to produce. What I'd like you
to do here, is find the max value in that
column B, the coast region. And then, for that max
value, find the value on column to the left where
the time stamp is stored. And report it as a tuple,
just like we did when we were looking at our example of how
to use XLRD. In order to complete this exercise, you'll be working in
the Parse File function. And you need to pull out values that will
allow you to complete this data dictionary
right here, which is going to be returned.
.حسنًا، أتمنى أن تكون مستمتعًا بالدورة التدريبية حتى الآن
فيما يلي تمرين سيتيح لك الفرصة لتنفيذ بعض عمليات
.تحويل البيانات وتخطيطها باستخدام وحدة XLRD النمطية في Python
أريد منك هنا مراجعة
ملف "حمولة السرير النقال الهوائي بالساعة". وهو الملف الموضح هنا، وتسجيل الطابع الزمني
(المخزن في هذا العمود وقيم الحمولة المتمثلة في min (الحد الأدنى) وmax (الحد الأقصى) وaverage (المتوسط
من هذا العمود. والوارد من المنطقة الساحلية بمدينة تكساس. لنلقِ
نظرة سريعة على التعليمة البرمجية الواردة. أريدك أن تلقي نظرة
أولاً على التأكيدات الواردة هنا
في الجزء السفلي. يعطيك ذلك فكرة عن نوع
القيم التي يلزمك إنشاؤها. أريد منك هنا
البحث
عن أقصى قيمة في العمود "ب"، والمتمثلة في المنطقة الساحلية. وابحث في الجهة المقابلة لتلك القيمة
القصوى عن القيمة في العمود الموجود على الجانب الأيسر حيث
يتم تخزين الطابع الزمني. وسجِّله كمجموعة قيم مترابطة
مثلما فعلنا عند إلقاء نظرة على المثال الخاص بكيفية استخدام
XLRD. لإتمام هذا التمرين، سيتعين إدراج دالة
Parse File. ويلزم استخراج القيم التي ستتيح
لك إكمال قاموس البيانات
.الوارد هنا، والذي سيتم إرجاعه
Espero que você esteja gostando do curso.
Aqui está um exercício que dará a você a chance de
preparar os dados usando o módulo XLRD no Python.
O que quero que você faça aqui é ler
o arquivo Aircot Hourly Load. Este arquivo aqui, e indique o carimbo de
data e hora que está armazenado neste coluna, e carregue, os valores
mín, máx e médio desta coluna. Da região costeira do Texas. Vamos
dar uma rápida olhada no código fornecido. Primeiro,
quero que você analise as asserções aqui
na parte inferior. Elas dão uma ideia do tipo
de valor que você precisa produzir. O que quero que
você faça aqui é encontrar o valor máx na
coluna B, a região costeira. Depois, para esse valor
máx, encontrei o valor na coluna à esquerda, na
qual está o carimbo de data e hora. Relate-o como tupla,
assim como fizemos quando analisamos nosso exemplo de como
usar o XLRD. Para concluir este exercício, você trabalhará na
função de parse file. Você precisa obter valores que permitirão
que você conclua este dicionário de dados
aqui, que será retornado.
希望大家能喜欢这节课程
这里有一个练习
你将有机会在 Python 中利用 XLRD 模块进行数据再加工
我希望大家阅读一下
德州电力可靠性委员会每小时的用电量文件
然后报告储存在这一列的时间标记
以及这一行中德州海岸地区用电量的最小值、最大值和平均值
快速查看一下这里提供的代码
首先 我需要你看一下底部的断言
它是用来告诉你
你需要生成的数据值类型
我需要你找到 B 列海岸区域的最大值
然后 在左侧储存时间标记的列中
找到最大值
然后按照我们讲解如何使用 XLRD 时使用的方法
将其以元组的形式报告出来
你将在解析文件函数中完成这一练习
你需要抽出
填满这个数据字典的相应值
这个字典就是最后返回的结果