精华内容
下载资源
问答
  • Python3pandas库Series用法(基础整理)

    万次阅读 2017-10-18 02:41:03
    构造/初始化Series的3种方法:(1)用列表list构建Seriesimport pandas as pd my_list=[7,'Beijing','19大',3.1415,-10000,'Happy'] s=pd.Series(my_list) print(type(s)) print(s)<class 'pandas.core....

    构造/初始化Series的3种方法:

    1)用列表list构建Series

    import pandas as pd
    my_list=[7,'Beijing','19大',3.1415,-10000,'Happy']
    s=pd.Series(my_list)
    print(type(s))
    print(s)
    
    <class 'pandas.core.series.Series'>
    0           7
    1     Beijing
    2        19大
    3      3.1415
    4      -10000
    5       Happy
    dtype: object
    

    1.a)pandas会默认用0到n来做Series的index,但也可以自己指定index,index你可以理解为dict里面的key

    s=pd.Series([7,'Beijing','19大',3.1415,-10000,'Happy'],
    index=['A','B','C','D','E','F'])
    print(s)
    
    A           7
    B     Beijing
    C        19大
    D      3.1415
    E      -10000
    F       Happy
    dtype: object
    

    2)用字典dict来构建Series,因为Series本身其实就是key-value的结构

    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    print(apts)
    
    Beijing      55000.0
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     50000.0
    Name: income, dtype: float64
    

    3)用numpy array来构建Series

    import numpy as np
    d=pd.Series(np.random.randn(5),index=['a','b','c','d','e'])
    print(d)
    
    a   -0.329401
    b   -0.435921
    c   -0.232267
    d   -0.846713
    e   -0.406585
    dtype: float64
    

    选择数据:

    1)可以像对待一个list一样对待一个Series,完成各种切片的操作

    import pandas as pd
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    print(apts)
    
    Beijing      55000.0
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     50000.0
    Name: income, dtype: float64
    
    print(apts[3])
    
    60000.0
    
    print(apts[[3,4,1]])
    
    Shanghai     60000.0
    Suzhou           NaN
    Guangzhou    45000.0
    Name: income, dtype: float64
    
    print(apts[1:])
    
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     50000.0
    Name: income, dtype: float64
    
    print(apts[:-2])
    
    Beijing      55000.0
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Name: income, dtype: float64
    
    print(apts[1:]+apts[:-1])
    
    Beijing           NaN
    Guangzhou     90000.0
    Hangzhou      40000.0
    Shanghai     120000.0
    Suzhou            NaN
    shenzhen          NaN
    Name: income, dtype: float64
    

    2)Series就像一个dict,前面定义的index就是用来选择数据的

    import pandas as pd
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    print(apts['Shanghai']) ###
    
    60000.0
    
    print('Hangzhou' in apts)
    
    True
    
    print('Choingqing' in apts)
    
    False
    

    3)boolean indexing,和numpy很像

    import pandas as pd
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    less_than_50000=(apts<=50000) ###
    print(apts[less_than_50000])
    
    Guangzhou    45000.0
    Hangzhou     20000.0
    shenzhen     50000.0
    Name: income, dtype: float64
    

    注:可以使用numpy的各种函数mean,median,max,min

    print(apts.mean()) 
    
    46000.0
    

    Series元素赋值:

    1)直接利用索引值赋值

    import pandas as pd
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    print(apts)
    print('Old income of shenzhen:{}'.format(apts['shenzhen']))
    
    Beijing      55000.0
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     50000.0
    Name: income, dtype: float64
    
    Old income of shenzhen:50000.0
    
    apts['shenzhen']=70000  ###
    print(apts)
    print('New income of shenzhen:{}'.format(apts['shenzhen']))
    
    Beijing      55000.0
    Guangzhou    45000.0
    Hangzhou     20000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     70000.0
    Name: income, dtype: float64
    
    New income of shenzhen:70000.0
    

    2)不要忘了上面的boolean indexing,在赋值里它也可以用

    import pandas as pd
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    apts['shenzhen']=70000
    print('New income of shenzhen:{}'.format(apts['shenzhen']))
    less_than_50000=(apts<50000)  ###
    print(less_than_50000)
    apts[less_than_50000]=40000  ###
    print(apts)
    
    Beijing      False
    Guangzhou     True
    Hangzhou      True
    Shanghai     False
    Suzhou       False
    shenzhen     False
    Name: income, dtype: bool
    
    Beijing      55000.0
    Guangzhou    40000.0
    Hangzhou     40000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     70000.0
    Name: income, dtype: float64
    

    数学运算

    import pandas as pd
    import numpy as np
    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    apts['shenzhen']=70000
    print('New income of shenzhen:{}'.format(apts['shenzhen']))
    less_than_50000=(apts<50000)  
    apts[less_than_50000]=40000  
    print(apts)
    
    print(apts/2)   ###
    print(apts**1.5)   ###
    print(np.log(apts))   ###
    apts2=pd.Series({'Beijing':10000,'Shanghai':8000,'shenzhen':6000,'Tianjin':40000,'Guangzhou':7000,'Chongqing':30000})
    print(apts2)
    print(apts+apts2)   ###
    

    数据缺失

    cities={'Beijing':55000,'Shanghai':60000,'shenzhen':50000,'Hangzhou':20000,'Guangzhou':45000,'Suzhou':None}
    apts=pd.Series(cities,name='income')
    apts['shenzhen']=70000
    less_than_50000=(apts<50000)
    apts[less_than_50000]=40000
    print(apts)
    
    Beijing      55000.0
    Guangzhou    40000.0
    Hangzhou     40000.0
    Shanghai     60000.0
    Suzhou           NaN
    shenzhen     70000.0
    Name: income, dtype: float64
    
    apts2=pd.Series({'Beijing':10000,'Shanghai':8000,'shenzhen':6000,'Tianjin':40000,'Guangzhou':7000,'Chongqing':30000})
    print(apts2)
    
    Beijing      10000
    Chongqing    30000
    Guangzhou     7000
    Shanghai      8000
    Tianjin      40000
    shenzhen      6000
    dtype: int64
    
    print('Hangzhou' in apts)   ###
    print('Hangzhou' in apts2)
    
    True
    False
    
    print(apts.notnull()) #boolean条件   ###
    
    Beijing       True
    Guangzhou     True
    Hangzhou      True
    Shanghai      True
    Suzhou       False
    shenzhen      True
    Name: income, dtype: bool
    
    print(apts.isnull())   ###
    
    Beijing      False
    Guangzhou    False
    Hangzhou     False
    Shanghai     False
    Suzhou        True
    shenzhen     False
    Name: income, dtype: bool
    
    print(apts[apts.isnull()])   #利用缺失索引布尔值取元素
    
    Suzhou   NaN
    Name: income, dtype: float64
    
    apts=apts+apts2   #索引缺失相加
    print(apts)
    
    Beijing      65000.0
    Chongqing        NaN
    Guangzhou    47000.0
    Hangzhou         NaN
    Shanghai     68000.0
    Suzhou           NaN
    Tianjin          NaN
    shenzhen     76000.0
    dtype: float64
    
    apts[apts.isnull()]=apts.mean() #将缺失位置赋值为中值
    print(apts)
    
    Beijing      65000.0
    Chongqing    64000.0
    Guangzhou    47000.0
    Hangzhou     64000.0
    Shanghai     68000.0
    Suzhou       64000.0
    Tianjin      64000.0
    shenzhen     76000.0
    dtype: float64
    
    展开全文
  • You Don’t Know JS Yet (book series) - 2nd Edition 全文阅读地址From https://github.com/getify/You-Dont-Know-JS 我的GitHub文件: ...

    You Don’t Know JS Yet (book series) - 2nd Edition

    全文阅读地址From https://github.com/getify/You-Dont-Know-JS


    我的GitHub文件: https://github.com/Li-YangZhong/Kyle_Simpson_You_Don-t_Know_JS_Yet_-Get_Started.git


    But let me be clear: I don’t think it’s possible to ever fully know JS. That’s not an achievement to be obtained, but a goal to strive after. You don’t finish knowing everything about JS, you just keep learning more and more as you spend more time with the language. And the deeper you go, the more you revisit what you knew before, and you re-learn it from that more experienced perspective.
    I encourage you to adopt a mindset around JavaScript, and indeed all of software development, that you will never fully have mastered it, but that you can and should keep working to get closer to that end, a journey that will stretch for the entirety of your software development career, and beyond.

    From https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/preface.md


    It is not my intention that YDKJSY be read straight through. The material in these books is dense, because JavaScript is powerful, sophisticated, and in parts rather complex. Nobody can really hope to download all this information to their brains in a single pass and retain any significant amount of it. That’s unreasonable, and it’s foolish to try.

    From https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/preface.md


    So, do your future self a favor and dig into this book and unlock the knowledge within. These solid foundations will serve you better than any framework ever will; those come and go but we’ll still be writing JavaScript itself for decades to come. Keep an open mind and challenge your preconceived notions.


    Don’t buy the lie that you should only learn and use a small collection of good parts while avoiding all the bad stuff. Don’t buy the “X is the new Y” snake oil, that some new feature of the language instantly relegates all usage of a previous feature as obsolete and ignorant. Don’t listen when someone says your code isn’t “modern” because it isn’t yet using a stage-0 feature that was only proposed a few weeks ago!
    Every part of JS is useful. Some parts are more useful than others. Some parts require you to be more careful and intentional.


    The primary point of the title “You Don’t Know JS Yet” is to point out that most JS developers don’t take the time to really understand how the code that they write works. They know that it works—that it produces a desired outcome. But they either don’t understand exactly how, or worse, they have an inaccurate mental model for the how that falters on closer scrutiny.


    In particular, Chapter 4 identifies three main pillars around which the JS language is organized: scope/closures, prototypes/objects, and types/coercion. JS is a broad and sophisticated language, with many features and capabilities. But all of JS is founded on these three foundational pillars.


    Further distancing the language from the Oracle-owned trademark, the official name of the language specified by TC39 and formalized by the ECMA standards body is ECMAScript. And indeed, since 2016, the official language name has also been suffixed by the revision year; as of this writing, that’s ECMAScript 2019, or otherwise abbreviated ES2019.
    In other words, the JavaScript/JS that runs in your browser or in Node.js, is an implementation of the ES2019 standard.


    One of the most foundational principles that guides JavaScript is preservation of backwards compatibility.
    Backwards compatibility means that once something is accepted as valid JS, there will not be a future change to the language that causes that code to become invalid JS. Code written in 1995—however primitive or limited it may have been!—should still work today. As TC39 members often proclaim, “we don’t break the web!”
    The idea is that JS developers can write code with confidence that their code won’t stop working unpredictably because a browser update is released. This makes the decision to choose JS for a program a more wise and safe investment, for years into the future.


    Always write code using the most appropriate features to communicate its ideas and intent effectively. In general, this means using the most recent stable JS version. Avoid negatively impacting the code’s readability by trying to manually adjust for the syntax/API gaps. That’s what tools are for!


    JS source code is parsed before it is executed.


    What does the name pragma mean?
    In plain English, pragmatic is an adjective that means sensible and practical. In programming, pragma refers to: The code that consists of useful information on how a compiler or interpreter or assembler should process the program. pragma does not contribute anything to the programming language itself.*


    Strict mode is switched on per file with a special pragma (nothing allowed before it except comments/whitespace):

    // only whitespace and comments are allowed
    // before the use-strict pragma
    "use strict";
    // the rest of the file runs in strict mode*
    

    Strict mode can alternatively be turned on per-function scope, with exactly the same rules about its surroundings:

    function someOperations() {
        // whitespace and comments are fine here
        "use strict";
        // all this code will run in strict mode
    }
    

    Interestingly, if a file has strict mode turned on, the function-level strict mode pragmas are disallowed. So you have to pick one or the other.


    ES6 modules assume strict mode, so all code in such files is automatically defaulted to strict mode.


    Further reading on strict mode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode


    JS is a compiled language, meaning the tools (including the JS engine) process and verify a program (reporting any errors!) before it executes.


    In JS, each standalone file is its own separate program. The reason this matters is primarily around error handling. Since JS treats files as programs, one file may fail (during parse/compile or execution) and that will not necessarily prevent the next file from being processed.


    Strings are ordered collections of characters, usually used to represent words and sentences.


    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules


    Always keep looking for better ways to use what JS gives us to author more readable code.

    From https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/get-started/ch4.md

    展开全文
  • This book gives you a step-by-step introduction to analysing time series using the open source software R. Each time series model is motivated with practical applications, and is defined in ...
  • You Don't Know JS

    2018-01-02 20:28:50
    With the 'You Don’t Know JS' book series, you’ll get a more complete understanding of JavaScript, including trickier parts of the language that many experienced JavaScript programmers simply avoid....
  • 你还不知道JS
  • Reading the first part you can find basic information that helps you to create simple applications and even publish it to the Store. In the second part you can find answers to the questions how to ...
  • 我上上篇博客说过:Pandas数据结构为...而构成DataFrame结构的每一列或每一行是Series结构,令人吃惊的是Series里面的结构是ndarray (numpy中的) 结构 Pandas之Series常用操作方法1 import pandas as pd fa...

    我上上篇博客说过:Pandas数据结构为DataFrame,里面可以同时是int、float、object(string类型时)、datatime、bool数据类型。而构成DataFrame结构的每一列或每一行是Series结构,令人吃惊的是Series里面的结构是ndarray (numpy中的) 结构

    Pandas之Series常用操作方法1

    import pandas as pd
    fandango = pd.read_csv('fandango_score_comparison.csv') #读文件
    series_film = fandango['FILM'] #查找该文件的名为"FILM"的列
    print(type(series_film)) #看结果打印类型是Series类型
    print(series_film[0:5])
    series_rt = fandango['RottenTomatoes']
    print(series_rt[0:5])
    
    结果是:
    <class 'pandas.core.series.Series'> #可以看到类型是Series类型
    0    Avengers: Age of Ultron (2015)
    1                 Cinderella (2015)
    2                    Ant-Man (2015)
    3            Do You Believe? (2015)
    4     Hot Tub Time Machine 2 (2015) #打印了"FILM"列的第0到4的数据
    Name: FILM, dtype: object
    0    74
    1    85
    2    80
    3    18
    4    14  #打印了"RottenTomatoes"列的第0到4的数据
    Name: RottenTomatoes, dtype: int64

    Pandas之Series常用操作方法2

    from pandas import Series
    film_names = series_film.values #查看该Series的value
    print(type(film_names)) #从结果看出:Series的value是ndarray结构
    rt_scores = series_rt.values
    series_custom = Series(rt_scores, index=film_names) #以电影名为索引构造Series,前一个参数是电影评分
    print(series_custom[['Minions (2015)','Leviathan (2014)']]) #以电影名为索引搜索其评分
    print(series_custom[5:10])  #打印此Series中第5到10的数据
    
    结果是:
    <class 'numpy.ndarray'> #可看出,Series里面的结构是ndarray结构
    Minions (2015)      54
    Leviathan (2014)    99  #以电影名为索引搜索到的其评分
    dtype: int64
    The Water Diviner (2015)        63
    Irrational Man (2015)           42
    Top Five (2014)                 86
    Shaun the Sheep Movie (2015)    99
    Love & Mercy (2015)             89 #此Series中第5到10的数据
    
    -----对Series排序
    series_custom.sort_index() #按索引进行排序
    series_custom.sort_value() #按值进行排序
    
    -----设置索引
    fandango_films = fandango.set_index('FILM', drop=False) #将某一列设置成索引,此时就有2个索引了,另一个是默认的,fandango是之前读取文件获得的对象
    
    -----设置索引之后,可以用设置索引的列的元素进行数据查看(切片方式)
    fandango_films["设置索引的列的元素1":"设置索引的列的元素2"] #查看元素1到元素2之间的所有元素
    
    -----自定义函数方式对Series操作
    a = b[["列名1", "列名2"]]  #a和b都是Series
    a.apply(lambda x: np.std(x), axis=1)  #通过列1和列2对a对象求标准差
    
    

    需要fandango_score_comparison.csv文件把代码走一遍的,评论联系我

    展开全文
  • UCR describition, please incite it if you think it is useful.
  • 新视野大学英语(第三版)视听说4答案

    万次阅读 多人点赞 2018-04-19 11:52:26
     improve social life 2 • Surfing the Internet • keep people well-informed • communicate with people all over the world easily get entertainment through watching TV series or...

    > 欢迎访问我的个人博客:[guqing's blog](https://guqing.xyz/)
     

    Unit 1

    Sharing

    3.Answers: b-e-f-d-c-a

    4. 2 4

    5.

     anti-social

     aware of

    appreciate

    attitude

    tolerant

     come to an end

    walk away

    impress

    Listening

    2.2

     

    2.3

    peaceful

    beautiful

    lovely part

    party

    with apassion

    last second

    walkingtheir dogs

    with abounce

    away

    the bestpart of the day

    thinkingstraight

    at mysharpest

    we hadchildren

    in themornings

    in theevenings

    View it

    2.2 2 4

    Role-playing

     1.2 Answers:g-a-f-h-b-d-c-e

     

    Conversations

    1.DABCC

    2.CBDA

     

    Passages

    1.ACDC

    2.distressing

    desperate             

    urge

    acquire

    aretotally unaware of

    areisolated from

    affirm

    interactwith

    impulse

    are convinced of

     

    Unit test 

    1.DDBCD

    2.CAAAD

    3.CBDDC

    4.at

    section

    connects

    at the bottomof

    shining

    As

    cross

    running awayfrom

    running awayfrom

    destroyed

     

     

    Unit 2

    Sharing  

    2.

    excited

    on the banks

    beachparties

    find out

    lookingforward to

    3. Answers: f-a-d-c-e-b

    4.1 2 3 8 10

    5.1 2 4

     

    Listening

    2.1

    A:2 3 4 5

    B:1 6

    2.2

    Thursday,20/5/2004

    16

    20

    by the river

    raining

    fancied

    have theguts to tell him

    good-looking,romantic and intelligent

    threechildren

    I'm happy

    feel goodabout who I was

    Good luckfor the future

    be happywith who you are

     

    Viewing

    2.1  3 6

    2.2

    thelongest-living communities

    900

    go abouttheir business

    fruit andvegetable

    ingredients

    cell damage

    highquantities

    healthprotective

    1200

    20 percentless

    getting morefor their money

    health'sworth

     

    Role-playing 

    1.2

    1 3 4 5 7 8 10

     

    Conversations

    1.ADCBD

    2.CBAD

     

    Passages

    1.BCDA

    2.Proportion

    3.estimated

    4.haveprofound impacts on

    5.potential

    6.economically

    7.pensions

    8/originatefrom

    9.residential

    10.poses achallenge to

    11.betransformed into

     

    Unit test

    1.BDCBC

    2.DCCBA

    3.BCAAD

    4.launched

    5.corner

    6.bankruptcy

    7.virtually

    8.directing

    9.dischargedfrom

    10.secured

    11.substantial

    12.Notsurprisingly

    13.fashion accessories

    unit 3

    Sharing

     Task 1

    (1)  free time

    (2) how they spend their free time,how they would spend their freetime differently if they had more time or money or opportUNITy,and what are the benefits to society if people are given more freetime or holidays

    Task 2

    (1)  enjoy 

    (2) free

    (3) music 

    (4)internationally

    (5)festivals your free time

     Task 3

      d-e-g-h-b-a-c-f

    Task 4
      2 3 5 6

    Task 5

     2 4 5 8 1 2.

     Listening

      Task 2 

    Activity 1

    a-d-g-e-b-f-c

    Activity 2

    1 3 6 8

    Activity 3

      (1)She feels it seems very shallow,
      (2)She has now grown up and matured.
      (3)She is very happy with where she is now./She doesn't think lifehas to be the perfect image she pictured.
     

    Viewing

    Task 2 Activity 1

     (1)husky sledding

    (2)38

    (3)wing-walking

    (4)3

    (5)driving on Route66 /driving on Route Sixty-six 

    (6) 19

    (7)queue-jumping

    (8) 17

    (9)swimming with dolphins

    (10) 1

    Task 2 Activity 2

    2 4 7 8 9

     Role-Playing
     Task 1Activity :
     (1)Four /4 

    (2)a swimming pool

    (3)covered by another “wall"

    (4)the same position as the shape in the hole

    (5)what shape the holewill be until the last moment

    (6) Not to get knocked into the pool 

    (7)gets through the most shapes

    Task 1Activity 2 

     1 3 4 7

    Presenting

    Get ideas 1 

     partly disagree with the writer's view that today most people spendtheir free time doing things that do not contribute to their
      development and are essentially unproductive.In my opinion,manypeople today actually use the additional free time that technology hascreated for working more,rather than for interacting with net friendsor for other leisure activities.For instance,many people have formed
      the habit of checking company emails frequently even during theiroff-work hours; they are disturbed by cell phone calls concerningwork wherever they are even on weekends; they are obliged to bringtheir computers with them even when going on a vacation.They neverseem to have real freedom after work owing to the advancement of
      technology and the popularization of modern communications devices.However,although they live in such constant chaos,the truth is,thiskind of life allows them no chance to spend time wastefully,and it often contributes to their career development and makes them moreproductive.

    Organize ideas  

    Meaningful leisure activities  Reasons for being meaningful

    1

    Outdoor activities such as going to parks,mountains and beaches

    •       build health

    •        prevent and reduce stress

    •       improve social life

    2

    •      Surfing the Internet

    •      keep people well-informed

    •      communicate with people all over the world easily get entertainment through watching TV series or movies online

    3

    •       Reading books

    •       make people think more deeply

    •       improve concentration

    4

    •       Playing chess

    •       make people smarter

    •       relieve stress and bring fun

    More practice in listening

    Short conversation

    D D C B A

    Long conversation

    DDBC

     Passages: Passage 1

    BCAC

     Passages: Passage 2  

    1.resorts

     2.sprung up

     3.dramatically

     4.having an adverse effect on

    5.combat

     6.wilderness

    7.unspoiled

    8.streams of

    9.guidelines

    10.auction off

    UNIT test

     PART I

    ABBBC

    Part II

    CCDDB

    Part III

    DABCD

    Part IV

    23.audience

    24.teenage

    25.celebrate

    26.Popular

    27.conquers

    28.columns

    29.is central to

    30.a private arrangement

    31.to choose

    32.apart from

    UNIT4

    Sharing

    Task 1

    (1) money and happiness

    (2) whether they think money makes them happy, what things are moreimportant than money, and whether wealthy people should be taxed more tosupport the poor

    Task 2

    (1)She is a producer for the BBC.

    (2) She likes living in London, but it can be quite expensive.

    (3) Money andhappiness.

    Task 3

    d-f-a-e-b-g-c 

    Task 4

    (1) brightenyour mood

     (2) a nurturing environment

     (3) a stable family

     (4) health 

    (5) Feelcontentment/Feel contentment

     (6) makes the difference

     (7) feeling satisfiedwith

     

    Task 5

    Listening

    Task 2

    Activity 1

     

     

     Activity 2

     (1) hotels or even cities

    (2) make money

    (3) has doubled

    (4) wherever he goes

    (S)what kind of food she eats

    (6) junk mail or adverts

    (7) robbed

    (8) more crimes

    (9) have no need to worry

    (10) be more careful

     (11) sent to the newspapers

    (12) posted online

     

     

    Viewing

    Task 2

    Activity 1

    D B A C D

     

    Task 2 Activity 2

    (1) rethinkeverything

    (2) Give itup

    (3) transform

    (4) standardof living

    (5)diminished

    (6)commutefurther

    (7) theopposite

    (8) slowdown

    (9)takemoreleisure

    (10)economicgrowth

    (11)consumergoods

    (12)materialpossessions

     

    Role-Playing

    Task1Activity1

    (1)  Cosmetic surgery

    (2)  Against

    (3)  dangerous

    (4)  frozensolid

    (5)   For

    (6)  health

    (7)  Downloading music for free

    (8)  Against

    (9)  theft

    (10) stealingfromthem

    (11) withoutpaying

    (12) makeanymoney

    (13) For

    (14)CDsales

    (15) filesharing

    (l6) concerts

    (17)Banningcarsfromcitycenter

    (l8)Against

    (l9) pollutingthancars

    (20)areductioninshopsales

    (21)perfectlyfine

    (22) For

    (23)the environment

    (24)electric buses

    (25)polluted

     

     

    Task1 Activity2

    1 3 4 6 7 9 10

    Presenting

    Get ideas1

    (1) The topics and their order: car,friendship, good food, money, and free time.

    (2)Friendshipand money.

    (3)Four.

    (4) Morefreetime

    Get ideas 2

    e-b-c-d-a

    Organizeideas 1

    Survey questions

    Interviewee 1

    Interviewee 2

    Interviewee 3

    Interviewee 4

    1.  How would you definehappiness?


     feel energetic & focused

    do  whatever I like to do

    do  well what I need to do

    not  worried about anything

    2.  Which two of the following six things would you find the most difficult to  live without: friendship, health, sport or exercise, money, good food, or  free time?

    sport  & friendship

    health  & free time

    health  & friendship

    good  food & money

    3.  How happy would you say you are, on a scale of one to five, five being very  happy?

    four

    three


     four

     

    three

    4.  What would you say is missing from your life?

    money

    money


     money


     money

    5.  Are you more happy or less happy than you were five years ago?

    less

    less

    less

    less

     

    Organize ideas 2

    1.Introductionto the survey (purpose, method, etc.):

    1) Purpose: To find outwhat college students think of happiness and how they evaluate their own senseof happiness.
    2) Method: By interviewing four of myclassmates with five questions.

    2. Findingsand analysis:

    1) Most of them definedhappiness as something related to one's state of mind.
    2) Regarding the two things most difficult tolive without, most of them chose health, friendship, free time, or sport, butone chose good food and money.
    3) All of them rated their level of happinessas three or four.
    4) Their answers to the last two questionswere surprisingly the same. All of them said that they lacked money and thatthey felt less happy than they were five years ago, probably because of thepressure associated with study and career choice.

    3.Conclusions from the survey:

    1) Students have a properunderstanding of happiness.
    2) They value health, friendship and free timemore than material things.
    3) They are fairly satisfied with theircurrent situation.
    4) They want to have more money.
    5) They feel less happy nowadays.

     

    More practiceinlistening

    Short conversation

    CABCD

    Long conversation

    BABD

     

    Passages:Passage1

    ADDC

    Passages:Passage2

    1.prevalent

    2. scary

    3. beclassifiedas

    4.epidemic

    5. ratio

    6. diagnosed

    7. keepingtrackof

    8. wasstillassociatedwith

    9. affirm

    10. intermsof

    News report

    1.A D

    2.A C

    UNIT test

    PARTI

    DBACD

    PartII

    CDACB

    PartIII

    ABABD

    PartIV

    1.over

    2.companionship

    3.lover

    4.definition

    5.scarce

    6.diary

    7.Thesightof

    8.defeated

    9.madeup

    10.philosophersandscientist

     

     

    UNIT5

    Sharing

    Taskl

    (1) thearts

    (2) what areas of the arts they enjoy, what exhibition or performance they vent to recently, and whether they think the arts are important

    Task2

    (1) Photographyanddance.

    (2)Thesmall,intimateexhibitions.

    (3)Thearts.

     

    Task3

    d-h-a-f-b-e-c-g

    Task4

    20.146

     

    Task5

    (1)enrich

    (2)expandourhorizons 

    (3) Terribly

    (4)intellect 

    (5) specific

    (6)learn throughart

    (7)allaspects

    (8) a live

    (9) performance

    (10)intenseemotions

     

    Listening

    Task2 Activityl

    Sarah(Woman)

    A.BotanicalgardenTim

    B.CinemaNigelC.Theater"workshopspace

     

    Activity2

    (1) gets yourvote 

    (2)infavorof 

    (3)usefulandbeneficial 

    (4)bringjobs

    (5) entertainment and activities 

    (6) concernme

    (7)expensive 

    (8)I personally would prefer

    (9) with disabilities

    (10) excellent

    (11) enjoy gardens

    (l2) mentioned youth

    (13) involved

    (l4) not so sure

    (15)costs

    (l6) myvotewouldgoto

    (17)1eaveout

    (l8)hanging around

    (l9)routine

    (20) bringingalong

    (2l) theoldergeneration

     

    Viewing

    Task2Activity1

    134

    Task2Activity2

    (l)A

    (2)makesamss

    (3) public buildings

    (4) wrong

    (5)V

    (6) definitely

    (7)A

    (8) quiteexciting

    (9)Y

    (10) A

    (11) pleasingtotheeye

    (l2) positive

    (l3) environment

    (l4) A

    (15) nicepicture

    (l6) offensive

     

    Role-Playing

    Task1 Activity1

    c-a-b-d

     

    Task1 Activity2

    (l)extendsoutv.1est

    (2) northabove

    (3) goup

    (4) aroundthecorner

    (5) overthere

    (6) aroundtheneighborhood

    (7) ontheleft

    (8)hangoutandhead

    (9) headoverto

    (10)circleback

    (11) walkingby

    (l2)acenterof

    (13) attracted

    (14)folkmusic

    (l5)lookslike

    (l6)modeledon

    (l7) thehundredthanniversary

     

    Presenting 

    Get ideas 1

    (1) Setting of themovie

    (2)Actor(s)/Actress(es)

    (3)Plotsumn1ary

    (4) Recommendation

    (5) Director

    (6) Reviewer'sopinionofdifferentelements

     

    Getideas 2

    (1)skillfully

    (2) gripping

    (3) shocking

    (4) hilarious

    (5) sensational

    (6)electrifying

    (7) poignantly

    (8) moving

    (9) breathless

    (10) hard-hitting

    (11) emotionally-draining

    (12)thoroughly

     

    Organizeideas

    Movie A

    Movie B

    Title

    FindingNemo

    ThePursuitofHappinessGenre(体裁)

    AnimationBiographySettingOcean

    SanFrancisco,USMaincharacters

    •  Marlin(aclownfish,anoverprotectivefather)

    •  Nemo(sonofMarlin)

    •  Dory (agood-heartedbluefish.withshort-termmemoryloss)

    •  ChrisGardner(asales1nanandlaterastockbroker,afather)

    •  Linda(Chris‘wife)

    •  Christopher(sonofChris)

    •  JayThistle(an1anagerforDeanWitter)Actors/Actresses

    •  AlbertBrooks(asMarlin)

    •  AlexanderGould(asNemo)

    •  EllenDeGeneres(asDory)

    •  WillSmith(asChrisGardner)

    •  ThandieNewton(asLinda)

    •  JadenSmith(asChristopher)

    •  BrianHowe(asJayTwistle)Director(s)

    •  AndrewStantonGabrieleMuccino

    •  Plotsummary

     (12) atmysharpest(13)wehadchildren

    (14) inthe1nornings

    (15) intheevenings

     

    Viewing

    Task2 Activity1

    (I)Becausehewasfascinatedwiththeirbodylanguage.

    (2)A"man watcher".(3)0ver60countries.

    (4) Thedifferentwaysofshakinghands,andthedifferentwaysof

    saying“You are crazy”

     

    Task2Activity2

    Role-Playing

    Task2Activity1

    (l)Becausehewantstoaskhertopaybackthemoneyshehasborrowedfromhim.

    (2) Sheexplainsthatsheisterriblewithmoneyand that she

    justforgetsaboutit.

    (3) Shesaysshewill paybackthemoneythefollowing weekwhen

    shegetspaid.

    (4)  Hefeelsannoyedaboutthesituation.

    (5)Hesuggeststhatthewomanpaybackalittlean1ountofthemoneyeachweek.

     

    Task2Activity2

    g-a-f-h-b-d-c-e

     

    Presenting

    Get ideas1

    (1) Thestory is about a couple who were ordered to return a large a1nount of lottery prizemoney.

    The movie tells the story of a father's courage and love. Nemo runs awayfrom school, ventures into the open sea, captured onto a boat, and sent to a dentist'soffice. Marlin and Dory go to search for him and bring him hon1e. They go all theway to Sidney 1-larbor. Along the way, Marlin learns to take risks and finally allowsNemo to take care of himself.

    The story is about a salesman, Chris. who strives to build a future for himselfand his five-year-old son. Although he works hard. he n1akes little n1oney. He raiseshis son on his own after his wife walks out. However, he never gives up. With diligenceand the love for his son, he becon1es a successful stockbroker.

     

    Opinions

    •   Abri11iantly animated masterpiece

    •  Fullofhumor

    •  Stunningvisualeffects

    •  Perfectlycastvoice

    •  Hilarious

    •  Asimplebut enchanting story

    •  Richdetailsandlavishcolors

    •  Channingcharacters

    •  Favoritescenes:underwaterworld-theocean,thefish,andthe 

    •  coral reef

    •  Areal,heavy,andinspirationalstory

    •  ActingofWillSmithisshockinglygood

    •  Actingofthesonisperfect

    •  Touchingandpowerful scenes

    •  Unconventionalapproachestotellaninspirationalstory

    •  Favoritescene:interviewfor internship

    •  A remarkable movie

     

    Recommendation

    Yes,stronglyrecom1nend.Yes,defi『1itelyamust-see.

     

    More practiceinlistening

    Shortconversation

    CDBCD

    Longconversation

    BDCA

    Passages:Passage1

    CADB

    Passages:Passage2

    45.anticipation

    46.glamorous

    47.beconferredupon

    48. collective

    49.nominatefor

    50. exceptionsto

    51. accomplished

    52. absolute

    53.recipients

    54.isentitledto55

    UNIT test

    Part I

    CCBBD

    Part II

    ABDCA

    Part  III

    DBACC

    PartIV

    43.tremendous

    44.strategic

    45.applied

    46. honored/honored

    47.escape

    48.defeated

    49. reflecting

    50. aseriesof

    51. strongrelationship

    52. awiderangeof

     

     

    UNIT 6

    Sharing
      Task 1
      (1)  the media and news
      (2) how they usually get their news,what kind of news storiesinterest hem the most,how modern technology and new mediahas changed their relationship with the news,and whether themedia uses its power responsibly

     

    Task 2
    (1)quite late 

    (2) go on

    (3) important

    (4)going on

    (5)the media andthe news


    Task 3
     (1)Interne

     (2)Television

    (3) Internet 

    (4) Radio

    (5)NewspapersTelevision

    (6) Newspapers Internet

     

    Task 4  

    e -c-b a-f-d

     

    Task 5
     (1)laptop

    (2) latest headlines

    (3)real time

    (4)sources

    (5)media

    (6)have to pay

    (7)discriminate

    (8)outlets

    (9)speed

    (10) risk

     

    Task 6

    1 2 3 2 8.

    Listening
    Task 2

     Activity 1

    f-e-d-g-c-a-b

     

    Activity 2
    (1)hear this story

    (2)about this guy

    (3)what happenedwas

    (4)remember all the details

    (5)recall

    (6)the firstchallenge

    (7)then from that 

    (8)something to do

    (9)the nextthing

    (10)according to the report

    (11)a part in his film

    (12)myimpression was that

    (13)ended up

    (14)that's what happened
      

    Viewing

     Task 2 Activity 1 

        BAADCCC

    Task 2 Activity 2
     (1)starts going wrong

    (2)fill an awful lot oftime

    (3)deeplyembarrassing for us

    (4)champion of the Wrong Guest division

    (5)charming but inappropriate

    (6) living the celebritylifestyle

    (7) love a good news blunder

     

    Role-Playing

    Task 1Activity 1

        b-a-d-c

    Task 1Activity 2

    A B B A B A A B B A


    Presenting  

    Get ideas 1

    2 3 5

    Get ideas  2

    Strictly Come Dancing

    Newsnight

    Genre

     Reality show

    Current affairs program

    Features

    Show-stopping dances,celebrities,glamorous dresses,big bandmusic,a popular host
    In-depth reporting,hardhitting interviews,intelligent analysisContent
    Sixteen famous contestants with lttle or no experience of dancingpair up with famous professional dancers; the bottom two couplescompete in a dance-off;judges decide who leaves.Main presenter interviews guests (e.g.politicians)


    Organize ideas
    (1)A Bite of China( 《舌尖上的中国》)(2) Documentary(3)CCTV-1
    (4)Premiered in May 20 12
    (5)Introduces Chinese Cuisine; explores origins & characteristicsof Chinese food; shows the Chinese lifestyle
    (6)Informative; beautiful scenes; art of simple & ordinary food;promotion of harmony between man & nature
    More practice in listening

     

    Short conversation

    BABDC

    Long conversation

    CDAC

    Passages: Passage 1

    DCDB

    Passages: Passage 2

    56.differentiate themselves from

    57.frown upon

    58.concise

    59.combat

    60.severe

    61.is geared up for

    62.emb raced

    63.compact

    64.is supplemented with

    65.sensational


    UNIT test
    Part I

    DBAAD

    Part II

    BDACC

    Part III

    CBDAC

    Part IV

    53.contest

    54.queens

    55.outgoing

    56.cheers

    57.title

    58.tours
    59.performed

    60.to convince

    61.in protest

     

     

    62.draw world attention

    欢迎扫码关注代码黑洞微信公众号获取更多内容

     

    展开全文
  • This Cortex-A Series Programmer’s Guide is protected by copyright and the practice or implementation of the information herein may be protected by one or more patents or pending applications. No part...
  • pandas时间序列分析和处理Timeseries

    万次阅读 2017-10-24 22:03:50
    pandas 最基本的时间序列类型就是以时间戳(TimeStamp)为 index 元素的 Series 类型。 其它时间序列处理相关的包 [P4J 0.6: Periodic light curve analysis tools based on Information Theory] [p4j github] ...
  • (This article was first published on Plotly Blog, and kindly contributed to R-bloggers)  Many graphs use a ...time series, meaning they measure events over time. William Playfair (1759 - 182
  • modeled as a current source, cannot be connected in series with the inductive element of the second block.Add a high-value resistance in parallel with one of the two block.You can also specify high-...
  • } = require ( '@jambonz/time-series' ) ( pinoLogger , '172.32.10.44' ) ; await writeCdrs ( [ { from : 'me' , to : 'you' , sip_callid : 'foo@127.0.0.1' , answered : true , duration : 22 , ...
  • 流利说 Level 4 全文

    万次阅读 多人点赞 2019-05-22 10:52:40
    If you get to close to a fire, you will be burned. An earache is a sharp, dull or burning pain in the ear. Common causes of an earache include an infection, a changing air pressure, or water in the ...
  • Spark-TimeSeries使用方法

    万次阅读 热门讨论 2017-04-24 17:41:28
    1.spark里面的库是没有时间序列算法的,但是国外有人已经写好了相应的算法。其github网址是:...2.github项目里面的Time-Series Data格式: (1)假如有如下的数据格式: 其中timestamp很显然
  • The three authors hold multiple certifications, including VCDX, and they call upon their combined decades of experience in administration, design, and education in technology to help you plan, design...
  • Juniper QFX5100 Series

    2018-07-28 01:37:30
    Juniper QFX5100 series by Douglas Richard Hank Ideal for network engineers involved in building a data center, this practical guide provides a comprehensive and technical deep-dive into the new ...
  • You Don't Know Js

    2016-11-11 18:35:20
    With the 'You Don’t Know JS' book series, you’ll get a more complete understanding of JavaScript, including trickier parts of the language that many experienced JavaScript programmers simply avoid....
  • pandas中的 Series的讲解

    千次阅读 2018-04-06 13:42:46
    # coding=utf-8 import pandas as pd import numpy as np from pandas import Series ''' Series的方法与属性 属性: values 获取某一列的数据值 获取的值为numpy.ndarray类型 index 获取series数据 ...
  • Series Determination

    2016-12-15 08:45:59
    Input to this problem will consist of a (non-empty) series of up to 100 data sets. Each data set will be formatted according to the following description, and there will be no blank lines separating ...
  • Developing your own 3D game engine can be a demanding task. If your up for the challenge, then "3D Game Engine Programming" is ready to take you through each step.
  • As part of the "You Don’t Know JS" series, this compact guide explores JavaScript types in greater depth than previous treatments by looking at type coercion problems, demonstrating why types work, ...
  • Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法。 问题 前段时间在做前端项目的时候,遇到了一个关于饿了么框架的报错问题,具体报错信息如下所示: [Vue ...
  • With R Markdown, you can easily create reproducible data analysis reports, presentations, dashboards, interactive applications, books, dissertations, websites, and journal articles, while enjoying ...
  • The book can be used as a text for an undergraduate or a postgraduate course in time series, or it can be used for self-tuition by research workers. The positive feedback I have received over the ...
  • 成功解决AttributeError: 'Series' object has no attribute 'columns' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: 'Series' object has no attribute 'columns' 解决...
  • 流利说 Level 3 全文

    万次阅读 多人点赞 2019-05-22 10:51:17
    Greasy foods have a lot of calories, so don’t eat them if you want to lose weight. Healthy foods are usually nature and don’t include dangerous chemical. Fruits and vegetables are examples of ...
  • ARIMA Time Series Modeling

    2018-09-11 14:12:33
    https://www.analyticsvidhya.com/blog/2015/12/complete-tutorial-time-series-modeling/ Step 0 : Create a ts ...You only need a (single) time series, a frequency, and a start date. The examples at ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 56,940
精华内容 22,776
关键字:

seriesyou