Discover udemy python data analysis, include the articles, news, trends, analysis and practical advice about udemy python data analysis on alibabacloud.com
b c D-a nan-nan nan nan-nan-nan-nan nan-nan-nan-nan NaNThe parameters of the Reindex are as follows:Deletes the item series on the specified axis (index)in []: obj = Series ([1,2,3,4],index=['a','b','C','D']) in [113]: objout[113]:a1b2C3D4dtype:int64in [[Obj1]: = Obj.drop ('C') in [115]: obj1out[115]:a1b2D4Dtype:int64DataFrameDelete a single index rowIn [109]: frameout[109]: class score0 Chinese 1201 Math 1302 English in[+]: obj = frame.drop (0) in [111]: objout[111]:
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
said that the interactive way right-click and hold the date will be dynamically expanded or shrunk, actually do it, no effect ...plt.show ()>>>AA AAPL GE IBM JNJ MSFT PEP SPX XOM1990-02-01 4.98 7.86 2.87 16.79 4.27 0.51 6.04 328.79 6.121990-02-02 5.04 8.00 2.87 16.89 4.37 0.51 6.09 330.92 6.241990-02-05 5.07 8.18 2.87 17.32 4.34 0.51 6.05 331.85 6.251990-02-06 5.01 8.12 2.88 17.56 4.32 0.51 6.15 329.66 6.231990-02-07 5.04 7.77 2.91 17.93 4.38 0.51 6.17 333.75 6.33AAPL MSFT XOM1990-02-01 7.86 0
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
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
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
This blog is used to record learning and facilitate review review.PyplotIn the Matplotlib object-oriented drawing library, Pyplot is a convenient interface.Basic drawing functionsMp.plot (array of horizontal coordinates, array of vertical coordinates) 1 from __future__ import unicode_literals 2 import NumPy as NP 3 import Matplotlib.pyplot as MP 4 x = Np.linspace (-np.pi, Np.pi, 1000) 5 cos_y = Np.cos (x)/26 sin_y = Np.sin (x) 7 mp.plot (x, cos_y) 8 mp.plot (x, sin_y) 9 m
Python Object System in-depth analysis, python system in-depth analysis
This article analyzes in detail the Python object system. Share it with you for your reference. The details are as follows:
Guido uses C language to create Python
Example Analysis of Class usage in Python and Analysis of python instances
This example describes the usage of the Class in Python. We will share this with you for your reference. The details are as follows:
Although Python has ad
Anti-pattern instance analysis and Python instance analysis in python Programming
This article describes the anti-pattern in Python programming. Share it with you for your reference. The specific analysis is as follows:
Variable assignment operation instance analysis in Python programming and python instance analysis
This article describes how to assign values to variables in Python programming. We will share this with you for your reference. The details are as follows:
# Coding = utf8''' i
Data analysis and presentation-NumPy database entry, numpy database for data analysis
This is the note of my course "Python data analysis and display" from songtian, Beijing University
Analysis of Operation instances of Python tuples [Create, assign, update, delete, etc.], and analysis of python instances
This example describes how to operate Python tuples. We will share this with you for your reference. The details are as follows:
# Coding = utf8''' tuple
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.