Googling Better (2) - 再谈Google搜索技巧

还想再写写搜索技巧,因为我确实不是一个好的Googler,而且一个人的搜索能力在现在这个信息时代是最最重要的一项技巧。“不怕你做不到,就怕你搜不到”这句新时代的标语正体现了搜索技巧的重要性。具有优秀的搜索技巧,你可以找到最新,最有用的信息,做任何事你都可以在巨人的肩膀上完成。
我2005年,决定制定一个计划来提高我的搜索能力。我的策略是:理论学习+实践。首先就让我们看一看所谓的理论学习吧,让我们看看Internet上有哪些介绍搜索技巧的资料(这本身就需要搜索,可见搜索是多么重要!) “华尔街男孩”的文章“Google技巧”第一部分介绍了几类与搜索有关的资源,给我们提供了一些阅读的参考。(忠告:做好任何一件事都需要花费很长的时间和精力才能达到)在这里我补充一条由浅入深的阅读方式。
1. 美国加州伯克利分校图书馆的搜索教程 ::URL:: http://www.lib.berkeley.edu/TeachingLib/Guides/Internet/FindInfo.html ):关注它对搜索策略的描述,其中最关键的是分析你的搜索主题,教程提供了几个提示,例如你的主题是否存在显著的关键字,是否存在准确,不宽泛的定义,是否存在同意词或变化的形式(这些同意形式需要一起被包含在关键字里以确保不遗漏信息);
2. 第二个推荐的站点是搜索研究院 ( ::URL:: http://www.9238.net ),这是一个普及介绍各种中文搜索技巧的站点,适合初级Googler长期阅读,学习;其中“经典搜索案例1001”频道对一个新手来说,效果应该很好;
3.  搜索论坛  ::URL:: http://newbbs2.sina.com.cn/index.shtml?search:search , 中文搜索引擎指南  ::URL:: http://www.sowang.com/ ,不过好像链接出现问题!!!,等站点恢复再介绍
4. 从这里开始以下,是中高级Googler研究高级搜索技术的资源
    《Searcher》杂志  ::URL:: http://www.infotoday.com/searcher/
    《Online》杂志 ::URL:: http://www.onlinemag.net/default.htm 
     Webmasterworld - 最好的关于搜索引擎的论坛
     Searchtools  ::URL:: http://www.searchtools.com/ -  最好的搜索产品研究网站 
      Search Engine Conference  ::URL:: http://www.infonortics.com/searchengines/  -  搜索引擎工业界的年度盛会 
     Search Engine Watch  ::URL:: http://searchenginewatch.com/  - 关于搜索引擎的最大网站 
   《Search Day》 ::URL:: http://searchenginewatch.com/ searchday/archives.html
                                                                                                                           (以上信息转载自“华尔街男孩”)

累了,写不下去了,先学习一下这些网站先!!
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Sure, I can help you with that. Here is the Python function that takes a single number as an input and outputs a single string noting if that number is high, medium, or low: ```python def classify_unemployment(x): if x > 6.5: return 'high' elif x <= 4.5: return 'low' else: return 'medium' ``` We use `applymap()` instead of `agg()` or `apply()` because we want to apply the function element-wise to each element in the DataFrame. Here's how you can use this function with `applymap()` to create a new DataFrame called `unemp_bins`: ```python unemp_bins = df.applymap(classify_unemployment) ``` To count how many times each state had each of the three classifications, we can use the `value_counts()` function on each column of `unemp_bins`. Since `value_counts()` returns a Series, we can use `apply()` and pass `value_counts` as a parameter to apply the function to each column: ```python state_counts = unemp_bins.apply(lambda x: x.value_counts()) ``` To construct a horizontal bar chart of the number of occurrences of each level with one bar per state and classification, we can use the `plot()` method on the `state_counts` DataFrame. We set `kind='barh'` to create a horizontal bar chart: ```python state_counts.plot(kind='barh', title='Unemployment Classification by State') ``` To count how many states had each classification in each month, we can use `groupby()` on the `unemp_bins` DataFrame, grouping by the columns 'month' and the classification ('high', 'medium', or 'low'). Then we can count the number of unique states in each group using the `nunique()` function: ```python month_counts = unemp_bins.groupby(['month', 'high', 'medium', 'low']).agg({'state': 'nunique'}) ``` To find out which month had the most states with high, medium, and low unemployment, we can use the `idxmax()` function on each column of `month_counts`. This returns the index (month, classification) of the maximum value in each column: ```python high_month = month_counts.loc[month_counts['high'].idxmax()].name[0] medium_month = month_counts.loc[month_counts['medium'].idxmax()].name[0] low_month = month_counts.loc[month_counts['low'].idxmax()].name[0] ``` This will give you the month with the most states with high, medium, and low unemployment.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值