Discover python data analysis coursera, include the articles, news, trends, analysis and practical advice about python data analysis coursera on alibabacloud.com
The tenth chapter of the book, "Python For Data Analysis", focuses on the processing of time series data.Label1. DateTime object, timestamp object, period object2. Two special indexes for pandas series and Dataframe object: Datetimeindex and Periodindex3. Time zone expression and processing4. Imestamp The frequency concept of object, period object, and its freque
The Basic course has not finished, it came to this, because my usual research is based on data processing. Who says the woman is inferior to the male 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0011.gif "alt=" J_0011.gif "/>do your own things well done carefully, Hee 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0003.gif "alt=" J_0003.gif "/>Read the introductory section, download the dat
1.1. Foreword
This way we use the memory analysis framework pandas to analyze the daily PV.1.2. Praise to Pandas
In fact, personal to pandas this module is quite favorable. I use pandas to complete many of the day-to-day practical gadgets, such as the production of Excel reports, simple data migration, and so on.
To me, pandas is a memory MySQL, I usually call him the program SQL.
1.3. Pandas
the string object method Split () method splits the string:The Strip () method removes whitespace and line breaks:Split () in combination with strip () using:The "+" symbol allows you to concatenate multiple strings together:The join () method is also the connection string, comparing it to the "+" symbol:The In keyword determines whether a string is contained in another string:The index () method and the Find () method determine the location of a substring: the difference between the index ()
After installing the NumPy module, I started to do a few small tests to run, but when I created numpy.py this filenumpy.pyimport numpyy = Numpy.array ([[[11,4,2],[2,6,1],[32,6,42]])print(y)After the operation error:Traceback (most recent):File "D:\Python_Reptile\numpy.py", line 1, Import NumPyFile "D:\Python_Reptile\numpy.py", line 2, y = Numpy.array ([[11,4,2],[2,6,1],[32,6,42]])Attributeerror:module ' NumPy ' has no attribute ' array 'Baidu opened the query for a long time, and the previous te
has a mechanism called the Global Interpreter Lock, GIL, which prevents the interpreter from executing multiple Python byte-code directives at the same time.
PS. Cython projects can integrate OpenMP (c framework for parallel computing)
NumPy (numerical Python) Scientific Computing base package, function: Multidimensional array objects ndarray the array of elements to perform the element-level calculation
C, C + +, FORTRAN code integration into Python tools
Pandas: A large number of data structures and functions that handle structured data
Precise indexing, reshaping, slicing, chopping, aggregating, selecting subsets
High performance time series features and tools
Matplotlib: The most popular library for plotting
ordered data such as time series, it may be necessary to do some interpolation when re-indexing, the method option can achieve this purpose:For ordered data such as time series, it may be necessary to do some interpolation when re-indexing, the method option can achieve this purpose:
Method Parameter Introduction
Parameters
Description
Ff
Before doing data analysis, many are using Oracle or MySQL, SQL to complete the query and statistical data analysis, but with the increase in data volume, the database with the development of a NoSQL database, due to the changes in the database and its underlying technology
DataFrame.hist(Data,Column=none,By=none,grid=true,Xlabelsize=none,Xrot=none,Ylabelsize=none,Yrot=none,Ax=none,Sharex=false,Sharey=false,Figsize=none,Layout=none,bins=10,**kwds)Data : DataFramecolumn : string or sequence strings or sequences
by: object, optional
If passed, then used to form histograms (histogram) for separate groups
Grid : Boolean, default True grid line, defaul
Date-time data types and tools from Import = datetime.now ()print(now.year,now.month,now.day)# stores time in milliseconds Delta = now-datetime (1992,2,2)print(delta)print(delta.days) # You can subtraction from import timedeltaprinton the timestamp ( Delta+timedelta (12))String and DateTime conversions#Time Turn strTime_str = Now.strftime ('%y-%m-%d')Print(TIME_STR)#Str Turn TimeTIME_STR2 = Datetime.strptime (Time_str,'%y-%m-%d')Print(TIME_STR2)#wo
Getting started with Python for data analysis--pandas
Based on the NumPy established
from pandas importSeries,DataFrame,import pandas as pd
One or two kinds of data structure 1. Series
A python-like dictionary with indexes and values
The way of thinking is mainly based on this article, linking:Http://www.jb51.net/article/78667.htmBut when the installation of brew, it may be the problem of the site, has been an errorSo looking for information from the Internet, brew installation needs a new window, non-root developmentSpecific methods refer to connection: http://jingyan.baidu.com/article/335530da8b2b0419cb41c338.htmlThe command line is as follows:
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/m
Vectorization refers to using an array expression instead of a loop to manipulate each element in the array.The general functions provided by NumPy (both Ufunc functions) are functions that perform element-level operations on data in Ndarray. For example, the square function computes the square of each element, and the rint function rounds each element:There are also some functions that accept 2 parameters, called two ufunc, such as the Add function a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.