pandas: powerful Python data analysis toolkit - 0.19.0plot(kind='scatter', x='SepalRatio', y='PetalRatio')) ...: Out[5]:fc953a64c50> See the documentation for more. (GH9229) 138 Chapter 1. What’s New pandas: powerful Python figure() Out[1]: fc98025e650> In [2]: fx['FR'].plot(style='g') Out[2]: fc9716abf10> In [3]: fx['IT'].plot(style='k--', secondary_y=True) secondary_y=True) Out[3]: fc9878ba990> ../_static/whatsnew_secondary_y.png Vytautas Jancauskas, the 2012 GSOC participant, has added many new plot types. For 0 码力 | 1937 页 | 12.03 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.0.4------------------------- NameError Traceback (most recent call last)fc> in ----> 1 df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) NameError: ---------------------------- NameError Traceback (most recent call last) fc4c4> in ----> 1 data = pd.Series(np.random.randn(1000)) NameError: name 'pd' is not defined ---------------------------------- NameError Traceback (most recent call last) fc769e009a9> in ----> 1 bp = df_box.boxplot(by='g') NameError: name 'df_box' is not defined 0 码力 | 3081 页 | 10.24 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.21.1˓→'series') In [74]: series.plot.pie(figsize=(6, 6)) Out[74]:fc5518> 976 Chapter 22. Visualization pandas: powerful Python data analysis toolkit, Release 0.21.1 In [6]: s = df.style.applymap(color_negative_red) s Out[6]: fc9f1d0> Notice the similarity with the standard df.applymap, which operates on DataFrames elementwise v in is_max] In [8]: df.style.apply(highlight_max) Out[8]: fc9bba8> In this case the input is a Series, one column at a time. Notice that the output shape of highlight_max 0 码力 | 2207 页 | 8.59 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.1.0[134]: ts = ts.cumsum() In [135]: ts.plot() Out[135]:fc971f69220> 2.1. 10 minutes to pandas 133 pandas: powerful Python data analysis toolkit, Release 1 Out[139]: fc971ad9af0> In [140]: plt.legend(loc='best') Out[140]: fc96e9e0490> 134 Chapter 2. User Guide pandas: powerful ------------------------- NameError Traceback (most recent call last) fc> in ----> 1 df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) NameError: 0 码力 | 3229 页 | 10.87 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.7.1figure(); ts.plot(style=’k--’, label=’Series’); plt.legend() Out[875]:fc8d90> On DataFrame, plot is a convenience to plot all of the columns with labels: In [876]: df = 0 码力 | 281 页 | 1.45 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.0------------------------- NameError Traceback (most recent call last)fc> in ----> 1 df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) NameError: ---------------------------- NameError Traceback (most recent call last) fc4c4> in ----> 1 data = pd.Series(np.random.randn(1000)) NameError: name 'pd' is not defined ---------------------------------- NameError Traceback (most recent call last) fc769e009a9> in ----> 1 bp = df_box.boxplot(by='g') NameError: name 'df_box' is not defined 0 码力 | 3091 页 | 10.16 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.1.1------------------------- NameError Traceback (most recent call last)fc> in ----> 1 df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) NameError: ---------------------------- NameError Traceback (most recent call last) fc4c4> in ----> 1 data = pd.Series(np.random.randn(1000)) NameError: name 'pd' is not defined ---------------------------------- NameError Traceback (most recent call last) fc769e009a9> in ----> 1 bp = df_box.boxplot(by='g') NameError: name 'df_box' is not defined 0 码力 | 3231 页 | 10.87 MB | 1 年前3
pandas: powerful Python data analysis toolkit -1.0.3------------------------- NameError Traceback (most recent call last)fc> in ----> 1 df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) NameError: ---------------------------- NameError Traceback (most recent call last) fc4c4> in ----> 1 data = pd.Series(np.random.randn(1000)) NameError: name 'pd' is not defined ---------------------------------- NameError Traceback (most recent call last) fc769e009a9> in ----> 1 bp = df_box.boxplot(by='g') NameError: name 'df_box' is not defined 0 码力 | 3071 页 | 10.10 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.25'C', 'D', 'E']) In [38]: df.plot.box() Out[38]:fc410> 554 Chapter 4. User Guide pandas: powerful Python data analysis toolkit, Release 0.25.3 Boxplot 0 码力 | 698 页 | 4.91 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.13.1In [126]: plt.figure(); df.plot(); plt.legend(loc=’best’) Out[126]:fc5910> 132 Chapter 5. 10 Minutes to Pandas pandas: powerful Python data analysis toolkit, Release 0 0 码力 | 1219 页 | 4.81 MB | 1 年前3
共 16 条
- 1
- 2













