Dreamland

Inner Peace


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

  • 搜索

Python发送邮件

发表于 2017-11-17 | 分类于 程序媛|Coding | | 阅读次数

日常工作中有些临时报表或者报警需要通过邮件形式进行。

阅读全文 »

Hexo博客数学公式显示

发表于 2017-09-21 | 分类于 程序媛|Coding | | 阅读次数

随着学习的深入,博客记录的笔记也少不了要碰到数学公式的展示问题。而Hexo好像并不支持markdown自带的数学公式语法,而是使用了Mathjax插件。本文介绍了使用Next主题下的Hexo博客启用Mathjax插件分方法和Mathjax的简单语法。

阅读全文 »

Transform data from long format to wide format

发表于 2017-09-19 | 分类于 程序媛|Coding | | 阅读次数

在数据存储时,由于缺失等情况,为了节省存储空间,很多时候会采取long format,待到建模或分析等时候,wide format会使操作更便捷。
于是,将long format的数据转换成wide format,就成了很常见的一种数据转换的场景。
在pandas中运用unstack方法还是非常方便的,不过对于数据量很大的情况,pandas可能hold不住。
本文记录了用pandas和sqlalchemy进行format转换的方法。

阅读全文 »

Git Manual

发表于 2017-08-09 | 分类于 程序媛|Coding | | 阅读次数

As coding more and more, git becomes a must-use tool to save the codes and control versions. This is only a memo for myself to help with my daily work. If it’s also helpful to you, I’d be very happy.

If you lack of basic knowledge about git, I would recommend you a helpful tutorial Pro Git, translated and editted by the author of theme Next.

阅读全文 »

Python Decorator Application

发表于 2017-01-15 | 分类于 程序媛|Coding | | 阅读次数

本篇文章简单介绍python装饰器的应用。 若多个不同的函数需要实现一个相同的功能,则可以考虑使用装饰器来实现,而不需要去修改每一个函数。

阅读全文 »

Install Operation System Ubuntu 14.04 and Some Softwares

发表于 2016-10-17 | 分类于 程序媛|Coding | | 阅读次数

Recently I was working with postgresql and python on Ubuntu. When I need to use pl/python extension, I met a system error but I cannot know how to fix it directly. Then a simple idea just came into my mind: reinstall the operation system and all the softwares.

本文方法也基本适用其他版本的ubuntu。自从装了16以来,bug不断,还是决定重回14了。被自己的强迫症打脸了。

阅读全文 »

Ubuntu matplotlib 中文显示

发表于 2016-10-10 | 分类于 程序媛|Coding | | 阅读次数

本文介绍了好几种解决matplotlib中文显示问题的方法。

系统环境:

  • Ubuntu 16.04 LTS
  • Python3.5 virtual environment
  • jupyter notebook
阅读全文 »

Extract and Compress Files in Ubuntu

发表于 2016-10-09 | 分类于 程序媛|Coding | | 阅读次数

This artical contains basic operation of working with zip, tar, tar.gz, tar.bz2 files.

阅读全文 »

抛弃Hexo又回归

发表于 2016-09-22 | 分类于 看世界|World Eye | | 阅读次数

前因

现在的工作基本上都是借助jupyter notebook和Python内核来完成的。 做探索性的工作或者完成基本的分析报告都是如此,所以迫切地希望能够用jupyter notebook来直接完成一篇博文。

阅读全文 »

Test Cases by pytest

发表于 2016-09-09 | 分类于 拿来主义|Copinism | | 阅读次数

这篇同样是“拿来”的。 pytest will run all files in the current directory and its subdirectories of the form test_.py or _test.py. More generally, it follows standard test discovery rules.

阅读全文 »
12
Katherine Hou

Katherine Hou

To love the world as never get hurt!

19 日志
4 分类
38 标签
GitHub
Links
  • 二师兄
  • 师父
  • 琳儿
  • 白龙马
  • 旭总
© 2015 - 2017 Katherine Hou
由 Hexo 强力驱动
主题 - NexT.Mist