forked from apachecn/pandas-doc-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.html
4188 lines (4186 loc) · 445 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<span id="api"></span><h1><span class="yiyi-st" id="yiyi-1104">API参考</span></h1>
<blockquote>
<p>原文:<a href="http://pandas.pydata.org/pandas-docs/stable/api.html">http://pandas.pydata.org/pandas-docs/stable/api.html</a></p>
<p>译者:<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
<p>校对:(虚位以待)</p>
</blockquote>
<div class="section" id="input-output">
<span id="api-functions"></span><h2><span class="yiyi-st" id="yiyi-1105">输入//输出</span></h2>
<div class="section" id="pickling">
<h3><span class="yiyi-st" id="yiyi-1106">清洗</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1107"><a class="reference internal" href="generated/pandas.read_pickle.html#pandas.read_pickle" title="pandas.read_pickle"><code class="xref py py-obj docutils literal"><span class="pre">read_pickle</span></code></a>(path)</span></td>
<td><span class="yiyi-st" id="yiyi-1108">从指定的加载pickled pandas对象(或任何其他pickled对象)</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="flat-file">
<h3><span class="yiyi-st" id="yiyi-1109">Flat File</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1110"><a class="reference internal" href="generated/pandas.read_table.html#pandas.read_table" title="pandas.read_table"><code class="xref py py-obj docutils literal"><span class="pre">read_table</span></code></a>(filepath_or_buffer [,sep,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1111">将一般分隔文件读入DataFrame</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1112"><a class="reference internal" href="generated/pandas.read_csv.html#pandas.read_csv" title="pandas.read_csv"><code class="xref py py-obj docutils literal"><span class="pre">read_csv</span></code></a>(filepath_or_buffer [,sep,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1113">将CSV(逗号分隔)文件读入DataFrame</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1114"><a class="reference internal" href="generated/pandas.read_fwf.html#pandas.read_fwf" title="pandas.read_fwf"><code class="xref py py-obj docutils literal"><span class="pre">read_fwf</span></code></a>(filepath_or_buffer [,colspecs,width])</span></td>
<td><span class="yiyi-st" id="yiyi-1115">将固定宽度格式的行的表读入DataFrame</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1116"><a class="reference internal" href="generated/pandas.read_msgpack.html#pandas.read_msgpack" title="pandas.read_msgpack"><code class="xref py py-obj docutils literal"><span class="pre">read_msgpack</span></code></a>(path_or_buf [,encoding,iterator])</span></td>
<td><span class="yiyi-st" id="yiyi-1117">从指定的加载msgpack pandas对象</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="clipboard">
<h3><span class="yiyi-st" id="yiyi-1118">剪贴板</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1119"><a class="reference internal" href="generated/pandas.read_clipboard.html#pandas.read_clipboard" title="pandas.read_clipboard"><code class="xref py py-obj docutils literal"><span class="pre">read_clipboard</span></code></a>(\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1120">从剪贴板读取文本并传递给read_table。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="excel">
<h3><span class="yiyi-st" id="yiyi-1121">Excel</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1122"><a class="reference internal" href="generated/pandas.read_excel.html#pandas.read_excel" title="pandas.read_excel"><code class="xref py py-obj docutils literal"><span class="pre">read_excel</span></code></a>(io [,sheetname,headers,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1123">将Excel表读入pandas DataFrame</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1124"><a class="reference internal" href="generated/pandas.ExcelFile.parse.html#pandas.ExcelFile.parse" title="pandas.ExcelFile.parse"><code class="xref py py-obj docutils literal"><span class="pre">ExcelFile.parse</span></code></a>([sheetname,header,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1125">将指定的工作表解析到DataFrame中</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="json">
<h3><span class="yiyi-st" id="yiyi-1126">JSON</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1127"><a class="reference internal" href="generated/pandas.read_json.html#pandas.read_json" title="pandas.read_json"><code class="xref py py-obj docutils literal"><span class="pre">read_json</span></code></a>([path_or_buf,orient,typ,dtype,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1128">将JSON字符串转换为pandas对象</span></td>
</tr>
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1129"><a class="reference internal" href="generated/pandas.io.json.json_normalize.html#pandas.io.json.json_normalize" title="pandas.io.json.json_normalize"><code class="xref py py-obj docutils literal"><span class="pre">json_normalize</span></code></a>(data [,record_path,meta,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1130">将规范化的半结构化JSON数据转换为平面表格</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="html">
<h3><span class="yiyi-st" id="yiyi-1131">HTML</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1132"><a class="reference internal" href="generated/pandas.read_html.html#pandas.read_html" title="pandas.read_html"><code class="xref py py-obj docutils literal"><span class="pre">read_html</span></code></a>(io [,match,flavor,header,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1133">将HTML表格读入<code class="docutils literal"><span class="pre">DataFrame</span></code>对象的<code class="docutils literal"><span class="pre">list</span></code>。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="hdfstore-pytables-hdf5">
<h3><span class="yiyi-st" id="yiyi-1134">HDFStore: PyTables (HDF5)</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1135"><a class="reference internal" href="generated/pandas.read_hdf.html#pandas.read_hdf" title="pandas.read_hdf"><code class="xref py py-obj docutils literal"><span class="pre">read_hdf</span></code></a>(path_or_buf [,key])</span></td>
<td><span class="yiyi-st" id="yiyi-1136">从商店读取,如果我们打开它关闭它</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1137"><a class="reference internal" href="generated/pandas.HDFStore.put.html#pandas.HDFStore.put" title="pandas.HDFStore.put"><code class="xref py py-obj docutils literal"><span class="pre">HDFStore.put</span></code></a>(key,value [,format,append])</span></td>
<td><span class="yiyi-st" id="yiyi-1138">将对象存储在HDFStore中</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1139"><a class="reference internal" href="generated/pandas.HDFStore.append.html#pandas.HDFStore.append" title="pandas.HDFStore.append"><code class="xref py py-obj docutils literal"><span class="pre">HDFStore.append</span></code></a>(key,value [,format,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1140">附加到文件中的表。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1141"><a class="reference internal" href="generated/pandas.HDFStore.get.html#pandas.HDFStore.get" title="pandas.HDFStore.get"><code class="xref py py-obj docutils literal"><span class="pre">HDFStore.get</span></code></a>(key)</span></td>
<td><span class="yiyi-st" id="yiyi-1142">检索存储在文件中的pandas对象</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1143"><a class="reference internal" href="generated/pandas.HDFStore.select.html#pandas.HDFStore.select" title="pandas.HDFStore.select"><code class="xref py py-obj docutils literal"><span class="pre">HDFStore.select</span></code></a>(键[,其中,start,stop,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1144">检索存储在文件中的pandas对象,可选地基于where</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="sas">
<h3><span class="yiyi-st" id="yiyi-1145">SAS</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1146"><a class="reference internal" href="generated/pandas.read_sas.html#pandas.read_sas" title="pandas.read_sas"><code class="xref py py-obj docutils literal"><span class="pre">read_sas</span></code></a>(filepath_or_buffer [,format,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1147">读取以XPORT或SAS7BDAT格式文件存储的SAS文件。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="sql">
<h3><span class="yiyi-st" id="yiyi-1148">SQL</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1149"><a class="reference internal" href="generated/pandas.read_sql_table.html#pandas.read_sql_table" title="pandas.read_sql_table"><code class="xref py py-obj docutils literal"><span class="pre">read_sql_table</span></code></a>(table_name,con [,schema,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1150">将SQL数据库表读入DataFrame。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1151"><a class="reference internal" href="generated/pandas.read_sql_query.html#pandas.read_sql_query" title="pandas.read_sql_query"><code class="xref py py-obj docutils literal"><span class="pre">read_sql_query</span></code></a>(sql,con [,index_col,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1152">将SQL查询读入DataFrame。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1153"><a class="reference internal" href="generated/pandas.read_sql.html#pandas.read_sql" title="pandas.read_sql"><code class="xref py py-obj docutils literal"><span class="pre">read_sql</span></code></a>(sql,con [,index_col,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1154">将SQL查询或数据库表读入DataFrame。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="google-bigquery">
<h3><span class="yiyi-st" id="yiyi-1155">Google BigQuery</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1156"><a class="reference internal" href="generated/pandas.io.gbq.read_gbq.html#pandas.io.gbq.read_gbq" title="pandas.io.gbq.read_gbq"><code class="xref py py-obj docutils literal"><span class="pre">read_gbq</span></code></a>(query [,project_id,index_col,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1157">从Google BigQuery载入数据。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1158"><a class="reference internal" href="generated/pandas.io.gbq.to_gbq.html#pandas.io.gbq.to_gbq" title="pandas.io.gbq.to_gbq"><code class="xref py py-obj docutils literal"><span class="pre">to_gbq</span></code></a>(dataframe,destination_table,project_id)</span></td>
<td><span class="yiyi-st" id="yiyi-1159">将DataFrame写入Google BigQuery表格。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="stata">
<h3><span class="yiyi-st" id="yiyi-1160">STATA</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1161"><a class="reference internal" href="generated/pandas.read_stata.html#pandas.read_stata" title="pandas.read_stata"><code class="xref py py-obj docutils literal"><span class="pre">read_stata</span></code></a>(filepath_or_buffer [,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1162">将Stata文件读入DataFrame</span></td>
</tr>
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1163"><a class="reference internal" href="generated/pandas.io.stata.StataReader.data.html#pandas.io.stata.StataReader.data" title="pandas.io.stata.StataReader.data"><code class="xref py py-obj docutils literal"><span class="pre">StataReader.data</span></code></a>(\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1164">DEPRECATED:从Stata文件读取观察结果,将它们转换为数据帧</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1165"><a class="reference internal" href="generated/pandas.io.stata.StataReader.data_label.html#pandas.io.stata.StataReader.data_label" title="pandas.io.stata.StataReader.data_label"><code class="xref py py-obj docutils literal"><span class="pre">StataReader.data_label</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1166">返回Stata文件的数据标签</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1167"><a class="reference internal" href="generated/pandas.io.stata.StataReader.value_labels.html#pandas.io.stata.StataReader.value_labels" title="pandas.io.stata.StataReader.value_labels"><code class="xref py py-obj docutils literal"><span class="pre">StataReader.value_labels</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1168">返回一个dict,关联每个变量名称一个dict,关联</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1169"><a class="reference internal" href="generated/pandas.io.stata.StataReader.variable_labels.html#pandas.io.stata.StataReader.variable_labels" title="pandas.io.stata.StataReader.variable_labels"><code class="xref py py-obj docutils literal"><span class="pre">StataReader.variable_labels</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1170">返回变量标签作为dict,关联每个变量名</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1171"><a class="reference internal" href="generated/pandas.io.stata.StataWriter.write_file.html#pandas.io.stata.StataWriter.write_file" title="pandas.io.stata.StataWriter.write_file"><code class="xref py py-obj docutils literal"><span class="pre">StataWriter.write_file</span></code></a>()</span></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="general-functions">
<h2><span class="yiyi-st" id="yiyi-1172">一般函数</span></h2>
<div class="section" id="data-manipulations">
<h3><span class="yiyi-st" id="yiyi-1173">数据操作</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1174"><a class="reference internal" href="generated/pandas.melt.html#pandas.melt" title="pandas.melt"><code class="xref py py-obj docutils literal"><span class="pre">melt</span></code></a>(frame [,id_vars,value_vars,var_name,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1175">将DataFrame从宽格式“不透明”为长格式,可选择离开</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1176"><a class="reference internal" href="generated/pandas.pivot.html#pandas.pivot" title="pandas.pivot"><code class="xref py py-obj docutils literal"><span class="pre">pivot</span></code></a>(索引,列,值)</span></td>
<td><span class="yiyi-st" id="yiyi-1177">基于此DataFrame的3列生成'pivot'表。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1178"><a class="reference internal" href="generated/pandas.pivot_table.html#pandas.pivot_table" title="pandas.pivot_table"><code class="xref py py-obj docutils literal"><span class="pre">pivot_table</span></code></a>(data [,values,index,columns,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1179">创建一个电子表格样式的数据透视表作为DataFrame。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1180"><a class="reference internal" href="generated/pandas.crosstab.html#pandas.crosstab" title="pandas.crosstab"><code class="xref py py-obj docutils literal"><span class="pre">crosstab</span></code></a>(索引,列[,values,rownames,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1181">计算两个(或更多)因子的简单交叉列表。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1182"><a class="reference internal" href="generated/pandas.cut.html#pandas.cut" title="pandas.cut"><code class="xref py py-obj docutils literal"><span class="pre">cut</span></code></a>(x,bins [,right,labels,retbins,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1183"><cite>x</cite>的每个值所属的半开箱的返回索引。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1184"><a class="reference internal" href="generated/pandas.qcut.html#pandas.qcut" title="pandas.qcut"><code class="xref py py-obj docutils literal"><span class="pre">qcut</span></code></a>(x,q [,labels,retbins,precision])</span></td>
<td><span class="yiyi-st" id="yiyi-1185">基于分位数的离散化函数。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1186"><a class="reference internal" href="generated/pandas.merge.html#pandas.merge" title="pandas.merge"><code class="xref py py-obj docutils literal"><span class="pre">merge</span></code></a>(left,right [,how,on,left_on,...]</span></td>
<td><span class="yiyi-st" id="yiyi-1187">通过按列或索引执行数据库样式的连接操作来合并DataFrame对象。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1188"><a class="reference internal" href="generated/pandas.merge_ordered.html#pandas.merge_ordered" title="pandas.merge_ordered"><code class="xref py py-obj docutils literal"><span class="pre">merge_ordered</span></code></a>(left,right [,on,left_on,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1189">执行与为时序数据等有序数据设计的可选填充/插值合并。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1190"><a class="reference internal" href="generated/pandas.merge_asof.html#pandas.merge_asof" title="pandas.merge_asof"><code class="xref py py-obj docutils literal"><span class="pre">merge_asof</span></code></a>(left,right [,on,left_on,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1191">执行asof合并。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1192"><a class="reference internal" href="generated/pandas.concat.html#pandas.concat" title="pandas.concat"><code class="xref py py-obj docutils literal"><span class="pre">concat</span></code></a>(objs [,axis,join,join_axes,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1193">沿着特定轴连接pandas对象,沿着其他轴连接可选的设置逻辑。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1194"><a class="reference internal" href="generated/pandas.get_dummies.html#pandas.get_dummies" title="pandas.get_dummies"><code class="xref py py-obj docutils literal"><span class="pre">get_dummies</span></code></a>(data [,prefix,prefix_sep,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1195">将分类变量转换为虚拟/指示符变量</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1196"><a class="reference internal" href="generated/pandas.factorize.html#pandas.factorize" title="pandas.factorize"><code class="xref py py-obj docutils literal"><span class="pre">factorize</span></code></a>(values [,sort,order,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1197">将输入值编码为枚举类型或类别变量</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="top-level-missing-data">
<h3><span class="yiyi-st" id="yiyi-1198">顶级缺失数据</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1199"><a class="reference internal" href="generated/pandas.isnull.html#pandas.isnull" title="pandas.isnull"><code class="xref py py-obj docutils literal"><span class="pre">isnull</span></code></a>(obj)</span></td>
<td><span class="yiyi-st" id="yiyi-1200">检测缺失值(数值数组中的NaN,对象数组中的无/ NaN)</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1201"><a class="reference internal" href="generated/pandas.notnull.html#pandas.notnull" title="pandas.notnull"><code class="xref py py-obj docutils literal"><span class="pre">notnull</span></code></a>(obj)</span></td>
<td><span class="yiyi-st" id="yiyi-1202">替换适用于对象数组的numpy.isfinite / -numpy.isnan。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="top-level-conversions">
<h3><span class="yiyi-st" id="yiyi-1203">顶级转换</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1204"><a class="reference internal" href="generated/pandas.to_numeric.html#pandas.to_numeric" title="pandas.to_numeric"><code class="xref py py-obj docutils literal"><span class="pre">to_numeric</span></code></a>(arg [,errors,downcast])</span></td>
<td><span class="yiyi-st" id="yiyi-1205">将参数转换为数字类型。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="top-level-dealing-with-datetimelike">
<h3><span class="yiyi-st" id="yiyi-1206">顶级处理datetimelike </span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1207"><a class="reference internal" href="generated/pandas.to_datetime.html#pandas.to_datetime" title="pandas.to_datetime"><code class="xref py py-obj docutils literal"><span class="pre">to_datetime</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1208">将参数转换为datetime。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1209"><a class="reference internal" href="generated/pandas.to_timedelta.html#pandas.to_timedelta" title="pandas.to_timedelta"><code class="xref py py-obj docutils literal"><span class="pre">to_timedelta</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1210">将参数转换为timedelta</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1211"><a class="reference internal" href="generated/pandas.date_range.html#pandas.date_range" title="pandas.date_range"><code class="xref py py-obj docutils literal"><span class="pre">date_range</span></code></a>([start,end,periods,freq,tz,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1212">返回固定频率日期时间索引,将日(日历)作为默认值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1213"><a class="reference internal" href="generated/pandas.bdate_range.html#pandas.bdate_range" title="pandas.bdate_range"><code class="xref py py-obj docutils literal"><span class="pre">bdate_range</span></code></a>([start,end,periods,freq,tz,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1214">返回固定频率datetime索引,以工作日为默认值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1215"><a class="reference internal" href="generated/pandas.period_range.html#pandas.period_range" title="pandas.period_range"><code class="xref py py-obj docutils literal"><span class="pre">period_range</span></code></a>([start,end,periods,freq,name])</span></td>
<td><span class="yiyi-st" id="yiyi-1216">返回固定频率日期时间索引,将日(日历)作为默认值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1217"><a class="reference internal" href="generated/pandas.timedelta_range.html#pandas.timedelta_range" title="pandas.timedelta_range"><code class="xref py py-obj docutils literal"><span class="pre">timedelta_range</span></code></a>([start,end,periods,freq,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1218">返回固定频率timedelta索引,以天为默认值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1219"><a class="reference internal" href="generated/pandas.infer_freq.html#pandas.infer_freq" title="pandas.infer_freq"><code class="xref py py-obj docutils literal"><span class="pre">infer_freq</span></code></a>(index [,warn])</span></td>
<td><span class="yiyi-st" id="yiyi-1220">给定输入索引,推断最可能的频率。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="top-level-evaluation">
<h3><span class="yiyi-st" id="yiyi-1221">顶级评估</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1222"><a class="reference internal" href="generated/pandas.eval.html#pandas.eval" title="pandas.eval"><code class="xref py py-obj docutils literal"><span class="pre">eval</span></code></a>(expr [,parser,engine,truediv,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1223">使用各种后端将Python表达式评估为字符串。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="testing">
<h3><span class="yiyi-st" id="yiyi-1224">测试</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1225"><a class="reference internal" href="generated/pandas.test.html#pandas.test" title="pandas.test"><code class="xref py py-obj docutils literal"><span class="pre">test</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1226">使用鼻子运行模块的测试。</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="series">
<span id="api-series"></span><h2><span class="yiyi-st" id="yiyi-1227">系列</span></h2>
<div class="section" id="constructor">
<h3><span class="yiyi-st" id="yiyi-1228">构造</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1229"><a class="reference internal" href="generated/pandas.Series.html#pandas.Series" title="pandas.Series"><code class="xref py py-obj docutils literal"><span class="pre">Series</span></code></a>([data,index,dtype,name,copy,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1230">带轴标签的一维参考线(包括时间序列)。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="attributes">
<h3><span class="yiyi-st" id="yiyi-1231">属性</span></h3>
<dl class="docutils">
<dt><span class="yiyi-st" id="yiyi-1232"><strong>轴</strong></span></dt>
<dd><ul class="first last simple">
<li><span class="yiyi-st" id="yiyi-1233"><strong>索引</strong>:轴标签</span></li>
</ul>
</dd>
</dl>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1234"><a class="reference internal" href="generated/pandas.Series.values.html#pandas.Series.values" title="pandas.Series.values"><code class="xref py py-obj docutils literal"><span class="pre">Series.values</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1235">返回系列为ndarray或ndarray样</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1236"><a class="reference internal" href="generated/pandas.Series.dtype.html#pandas.Series.dtype" title="pandas.Series.dtype"><code class="xref py py-obj docutils literal"><span class="pre">Series.dtype</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1237">返回底层数据的dtype对象</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1238"><a class="reference internal" href="generated/pandas.Series.ftype.html#pandas.Series.ftype" title="pandas.Series.ftype"><code class="xref py py-obj docutils literal"><span class="pre">Series.ftype</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1239">返回如果数据稀疏|密集</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1240"><a class="reference internal" href="generated/pandas.Series.shape.html#pandas.Series.shape" title="pandas.Series.shape"><code class="xref py py-obj docutils literal"><span class="pre">Series.shape</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1241">返回基础数据的形状的元组</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1242"><a class="reference internal" href="generated/pandas.Series.nbytes.html#pandas.Series.nbytes" title="pandas.Series.nbytes"><code class="xref py py-obj docutils literal"><span class="pre">Series.nbytes</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1243">返回底层数据中的字节数</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1244"><a class="reference internal" href="generated/pandas.Series.ndim.html#pandas.Series.ndim" title="pandas.Series.ndim"><code class="xref py py-obj docutils literal"><span class="pre">Series.ndim</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1245">返回底层数据的维数,</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1246"><a class="reference internal" href="generated/pandas.Series.size.html#pandas.Series.size" title="pandas.Series.size"><code class="xref py py-obj docutils literal"><span class="pre">Series.size</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1247">返回底层数据中的元素数量</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1248"><a class="reference internal" href="generated/pandas.Series.strides.html#pandas.Series.strides" title="pandas.Series.strides"><code class="xref py py-obj docutils literal"><span class="pre">Series.strides</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1249">返回基础数据的步幅</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1250"><a class="reference internal" href="generated/pandas.Series.itemsize.html#pandas.Series.itemsize" title="pandas.Series.itemsize"><code class="xref py py-obj docutils literal"><span class="pre">Series.itemsize</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1251">返回底层数据项的dtype的大小</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1252"><a class="reference internal" href="generated/pandas.Series.base.html#pandas.Series.base" title="pandas.Series.base"><code class="xref py py-obj docutils literal"><span class="pre">Series.base</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1253">如果基础数据的内存是,则返回基础对象</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1254"><a class="reference internal" href="generated/pandas.Series.T.html#pandas.Series.T" title="pandas.Series.T"><code class="xref py py-obj docutils literal"><span class="pre">Series.T</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1255">返回转置,这是通过定义self</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1256"><a class="reference internal" href="generated/pandas.Series.memory_usage.html#pandas.Series.memory_usage" title="pandas.Series.memory_usage"><code class="xref py py-obj docutils literal"><span class="pre">Series.memory_usage</span></code></a>([index,deep])</span></td>
<td><span class="yiyi-st" id="yiyi-1257">系列的内存使用情况</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="conversion">
<h3><span class="yiyi-st" id="yiyi-1258">转换</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1259"><a class="reference internal" href="generated/pandas.Series.astype.html#pandas.Series.astype" title="pandas.Series.astype"><code class="xref py py-obj docutils literal"><span class="pre">Series.astype</span></code></a>(dtype [,copy,raise_on_error])</span></td>
<td><span class="yiyi-st" id="yiyi-1260">投射对象以输入numpy.dtype</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1261"><a class="reference internal" href="generated/pandas.Series.copy.html#pandas.Series.copy" title="pandas.Series.copy"><code class="xref py py-obj docutils literal"><span class="pre">Series.copy</span></code></a>([deep])</span></td>
<td><span class="yiyi-st" id="yiyi-1262">复制此对象数据。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1263"><a class="reference internal" href="generated/pandas.Series.isnull.html#pandas.Series.isnull" title="pandas.Series.isnull"><code class="xref py py-obj docutils literal"><span class="pre">Series.isnull</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1264">返回一个布尔大小相同的对象,指示值是否为null。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1265"><a class="reference internal" href="generated/pandas.Series.notnull.html#pandas.Series.notnull" title="pandas.Series.notnull"><code class="xref py py-obj docutils literal"><span class="pre">Series.notnull</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1266">返回一个布尔大小相同的对象,指示这些值是否为空。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="indexing-iteration">
<h3><span class="yiyi-st" id="yiyi-1267">索引,迭代</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1268"><a class="reference internal" href="generated/pandas.Series.get.html#pandas.Series.get" title="pandas.Series.get"><code class="xref py py-obj docutils literal"><span class="pre">Series.get</span></code></a>(key [,default])</span></td>
<td><span class="yiyi-st" id="yiyi-1269">从给定键的对象获取项目(DataFrame列,面板切片等</span><span class="yiyi-st" id="yiyi-1270">)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1271"><a class="reference internal" href="generated/pandas.Series.at.html#pandas.Series.at" title="pandas.Series.at"><code class="xref py py-obj docutils literal"><span class="pre">Series.at</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1272">基于快速标签的标量访问器</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1273"><a class="reference internal" href="generated/pandas.Series.iat.html#pandas.Series.iat" title="pandas.Series.iat"><code class="xref py py-obj docutils literal"><span class="pre">Series.iat</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1274">快速整数位置标量存取器。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1275"><a class="reference internal" href="generated/pandas.Series.ix.html#pandas.Series.ix" title="pandas.Series.ix"><code class="xref py py-obj docutils literal"><span class="pre">Series.ix</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1276">主要是基于标签位置的索引器,具有整数位置后备。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1277"><a class="reference internal" href="generated/pandas.Series.loc.html#pandas.Series.loc" title="pandas.Series.loc"><code class="xref py py-obj docutils literal"><span class="pre">Series.loc</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1278">纯标签位置索引器,用于按标签选择。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1279"><a class="reference internal" href="generated/pandas.Series.iloc.html#pandas.Series.iloc" title="pandas.Series.iloc"><code class="xref py py-obj docutils literal"><span class="pre">Series.iloc</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1280">纯粹基于整数位置的索引,用于按位置选择。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1281"><a class="reference internal" href="generated/pandas.Series.__iter__.html#pandas.Series.__iter__" title="pandas.Series.__iter__"><code class="xref py py-obj docutils literal"><span class="pre">Series.__iter__</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1282">提供对系列的值的迭代</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1283"><a class="reference internal" href="generated/pandas.Series.iteritems.html#pandas.Series.iteritems" title="pandas.Series.iteritems"><code class="xref py py-obj docutils literal"><span class="pre">Series.iteritems</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1284">Lazily迭代(索引,值)元组</span></td>
</tr>
</tbody>
</table>
<p><span class="yiyi-st" id="yiyi-1285">有关<code class="docutils literal"><span class="pre">.at</span></code>,<code class="docutils literal"><span class="pre">.iat</span></code>,<code class="docutils literal"><span class="pre">.ix</span></code>,<code class="docutils literal"><span class="pre">.loc</span></code>和<code class="docutils literal"><span class="pre">.iloc</span></code>,请参阅<a class="reference internal" href="indexing.html#indexing"><span class="std std-ref">indexing documentation</span></a>。</span></p>
</div>
<div class="section" id="binary-operator-functions">
<h3><span class="yiyi-st" id="yiyi-1286">二进制运算符函数</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1287"><a class="reference internal" href="generated/pandas.Series.add.html#pandas.Series.add" title="pandas.Series.add"><code class="xref py py-obj docutils literal"><span class="pre">Series.add</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1288">添加系列和其他,元素方式(二元运算符<cite>add</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1289"><a class="reference internal" href="generated/pandas.Series.sub.html#pandas.Series.sub" title="pandas.Series.sub"><code class="xref py py-obj docutils literal"><span class="pre">Series.sub</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1290">减法系数和其他,元素方式(二元运算符<cite>子</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1291"><a class="reference internal" href="generated/pandas.Series.mul.html#pandas.Series.mul" title="pandas.Series.mul"><code class="xref py py-obj docutils literal"><span class="pre">Series.mul</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1292">系列和其他元素乘法(二元算符<cite>mul</cite>)的乘法。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1293"><a class="reference internal" href="generated/pandas.Series.div.html#pandas.Series.div" title="pandas.Series.div"><code class="xref py py-obj docutils literal"><span class="pre">Series.div</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1294">浮点除法的系列和其他,元素(二进制运算符<cite>truediv</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1295"><a class="reference internal" href="generated/pandas.Series.truediv.html#pandas.Series.truediv" title="pandas.Series.truediv"><code class="xref py py-obj docutils literal"><span class="pre">Series.truediv</span></code></a>(other [,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1296">浮点除法的系列和其他,元素(二进制运算符<cite>truediv</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1297"><a class="reference internal" href="generated/pandas.Series.floordiv.html#pandas.Series.floordiv" title="pandas.Series.floordiv"><code class="xref py py-obj docutils literal"><span class="pre">Series.floordiv</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1298">系列的整数除法和其他,元素方式(二元运算符<cite>floordiv</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1299"><a class="reference internal" href="generated/pandas.Series.mod.html#pandas.Series.mod" title="pandas.Series.mod"><code class="xref py py-obj docutils literal"><span class="pre">Series.mod</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1300">系列模和其他,元素方式(二元运算符<cite>mod</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1301"><a class="reference internal" href="generated/pandas.Series.pow.html#pandas.Series.pow" title="pandas.Series.pow"><code class="xref py py-obj docutils literal"><span class="pre">Series.pow</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1302">系数和其他元指数(二元运算符<cite>pow</cite>)的指数幂。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1303"><a class="reference internal" href="generated/pandas.Series.radd.html#pandas.Series.radd" title="pandas.Series.radd"><code class="xref py py-obj docutils literal"><span class="pre">Series.radd</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1304">添加系列和其他,元素方式(二元算符<cite>radd</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1305"><a class="reference internal" href="generated/pandas.Series.rsub.html#pandas.Series.rsub" title="pandas.Series.rsub"><code class="xref py py-obj docutils literal"><span class="pre">Series.rsub</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1306">减法系列和其他,元素方式(二元运算符<cite>rsub</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1307"><a class="reference internal" href="generated/pandas.Series.rmul.html#pandas.Series.rmul" title="pandas.Series.rmul"><code class="xref py py-obj docutils literal"><span class="pre">Series.rmul</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1308">系列和其他元素乘法(二元算符<cite>rmul</cite>)的乘法。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1309"><a class="reference internal" href="generated/pandas.Series.rdiv.html#pandas.Series.rdiv" title="pandas.Series.rdiv"><code class="xref py py-obj docutils literal"><span class="pre">Series.rdiv</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1310">浮点除法的系列和其他,元素(二进制运算符<cite>rtruediv</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1311"><a class="reference internal" href="generated/pandas.Series.rtruediv.html#pandas.Series.rtruediv" title="pandas.Series.rtruediv"><code class="xref py py-obj docutils literal"><span class="pre">Series.rtruediv</span></code></a>(other [,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1312">浮点除法的系列和其他,元素(二进制运算符<cite>rtruediv</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1313"><a class="reference internal" href="generated/pandas.Series.rfloordiv.html#pandas.Series.rfloordiv" title="pandas.Series.rfloordiv"><code class="xref py py-obj docutils literal"><span class="pre">Series.rfloordiv</span></code></a>(other [,level,fill_value,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1314">系列的整数除法和其他,元素方式(二元运算符<cite>rfloordiv</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1315"><a class="reference internal" href="generated/pandas.Series.rmod.html#pandas.Series.rmod" title="pandas.Series.rmod"><code class="xref py py-obj docutils literal"><span class="pre">Series.rmod</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1316">系列模和其他,元素方式(二元算符<cite>rmod</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1317"><a class="reference internal" href="generated/pandas.Series.rpow.html#pandas.Series.rpow" title="pandas.Series.rpow"><code class="xref py py-obj docutils literal"><span class="pre">Series.rpow</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1318">系列和其他元指数(二元运算符<cite>rpow</cite>)的指数幂。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1319"><a class="reference internal" href="generated/pandas.Series.combine.html#pandas.Series.combine" title="pandas.Series.combine"><code class="xref py py-obj docutils literal"><span class="pre">Series.combine</span></code></a>(other,func [,fill_value])</span></td>
<td><span class="yiyi-st" id="yiyi-1320">对两个系列使用给定的函数执行元素二进制操作</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1321"><a class="reference internal" href="generated/pandas.Series.combine_first.html#pandas.Series.combine_first" title="pandas.Series.combine_first"><code class="xref py py-obj docutils literal"><span class="pre">Series.combine_first</span></code></a>(other)</span></td>
<td><span class="yiyi-st" id="yiyi-1322">组合系列值,首先选择调用系列的值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1323"><a class="reference internal" href="generated/pandas.Series.round.html#pandas.Series.round" title="pandas.Series.round"><code class="xref py py-obj docutils literal"><span class="pre">Series.round</span></code></a>([小数])</span></td>
<td><span class="yiyi-st" id="yiyi-1324">将系列中的每个值四舍五入为给定的小数位数。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1325"><a class="reference internal" href="generated/pandas.Series.lt.html#pandas.Series.lt" title="pandas.Series.lt"><code class="xref py py-obj docutils literal"><span class="pre">Series.lt</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1326">小于系列和其他,元素方式(二元运算符<cite>lt</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1327"><a class="reference internal" href="generated/pandas.Series.gt.html#pandas.Series.gt" title="pandas.Series.gt"><code class="xref py py-obj docutils literal"><span class="pre">Series.gt</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1328">大于系列和其他,元素方式(二元运算符<cite>gt</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1329"><a class="reference internal" href="generated/pandas.Series.le.html#pandas.Series.le" title="pandas.Series.le"><code class="xref py py-obj docutils literal"><span class="pre">Series.le</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1330">小于或等于系列和其他,元素方式(二元运算符<cite>le</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1331"><a class="reference internal" href="generated/pandas.Series.ge.html#pandas.Series.ge" title="pandas.Series.ge"><code class="xref py py-obj docutils literal"><span class="pre">Series.ge</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1332">大于或等于系列和其他,元素方式(二元运算符<cite>ge</cite>)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1333"><a class="reference internal" href="generated/pandas.Series.ne.html#pandas.Series.ne" title="pandas.Series.ne"><code class="xref py py-obj docutils literal"><span class="pre">Series.ne</span></code></a>(其他[,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1334">不等于系列和其他,元素方式(二元运算符<cite>ne</cite>)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1335"><a class="reference internal" href="generated/pandas.Series.eq.html#pandas.Series.eq" title="pandas.Series.eq"><code class="xref py py-obj docutils literal"><span class="pre">Series.eq</span></code></a>(other [,level,fill_value,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1336">等于系列和其他,元素方式(二元运算符<cite>eq</cite>)。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="function-application-groupby-window">
<h3><span class="yiyi-st" id="yiyi-1337">功能应用,GroupBy & Window</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1338"><a class="reference internal" href="generated/pandas.Series.apply.html#pandas.Series.apply" title="pandas.Series.apply"><code class="xref py py-obj docutils literal"><span class="pre">Series.apply</span></code></a>(func [,convert_dtype,args])</span></td>
<td><span class="yiyi-st" id="yiyi-1339">对Series的值调用函数。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1340"><a class="reference internal" href="generated/pandas.Series.map.html#pandas.Series.map" title="pandas.Series.map"><code class="xref py py-obj docutils literal"><span class="pre">Series.map</span></code></a>(arg [,na_action])</span></td>
<td><span class="yiyi-st" id="yiyi-1341">使用输入对应关系(可以是</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1342"><a class="reference internal" href="generated/pandas.Series.groupby.html#pandas.Series.groupby" title="pandas.Series.groupby"><code class="xref py py-obj docutils literal"><span class="pre">Series.groupby</span></code></a>([by,axis,level,as_index,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1343">使用mapper的组系列(dict或key函数,将给定函数应用于组,将结果返回为系列)或通过一系列列。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1344"><a class="reference internal" href="generated/pandas.Series.rolling.html#pandas.Series.rolling" title="pandas.Series.rolling"><code class="xref py py-obj docutils literal"><span class="pre">Series.rolling</span></code></a>(window [,min_periods,freq,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1345">提供滚动窗口计算。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1346"><a class="reference internal" href="generated/pandas.Series.expanding.html#pandas.Series.expanding" title="pandas.Series.expanding"><code class="xref py py-obj docutils literal"><span class="pre">Series.expanding</span></code></a>([min_periods,freq,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1347">提供扩展转换。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1348"><a class="reference internal" href="generated/pandas.Series.ewm.html#pandas.Series.ewm" title="pandas.Series.ewm"><code class="xref py py-obj docutils literal"><span class="pre">Series.ewm</span></code></a>([com,span,halflife,alpha,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1349">提供指数加权函数</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="computations-descriptive-stats">
<span id="api-series-stats"></span><h3><span class="yiyi-st" id="yiyi-1350">计算/描述性统计</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1351"><a class="reference internal" href="generated/pandas.Series.abs.html#pandas.Series.abs" title="pandas.Series.abs"><code class="xref py py-obj docutils literal"><span class="pre">Series.abs</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1352">返回具有绝对值的对象,仅适用于全部为数字的对象。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1353"><a class="reference internal" href="generated/pandas.Series.all.html#pandas.Series.all" title="pandas.Series.all"><code class="xref py py-obj docutils literal"><span class="pre">Series.all</span></code></a>([axis,bool_only,skipna,level])</span></td>
<td><span class="yiyi-st" id="yiyi-1354">返回所有元素是否超过请求的轴的True</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1355"><a class="reference internal" href="generated/pandas.Series.any.html#pandas.Series.any" title="pandas.Series.any"><code class="xref py py-obj docutils literal"><span class="pre">Series.any</span></code></a>([axis,bool_only,skipna,level])</span></td>
<td><span class="yiyi-st" id="yiyi-1356">返回任何元素是否超过请求的轴为True</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1357"><a class="reference internal" href="generated/pandas.Series.autocorr.html#pandas.Series.autocorr" title="pandas.Series.autocorr"><code class="xref py py-obj docutils literal"><span class="pre">Series.autocorr</span></code></a>([lag])</span></td>
<td><span class="yiyi-st" id="yiyi-1358">Lag-N自相关</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1359"><a class="reference internal" href="generated/pandas.Series.between.html#pandas.Series.between" title="pandas.Series.between"><code class="xref py py-obj docutils literal"><span class="pre">Series.between</span></code></a>(左,右[,含])</span></td>
<td><span class="yiyi-st" id="yiyi-1360">返回boolean系列相当于left</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1361"><a class="reference internal" href="generated/pandas.Series.clip.html#pandas.Series.clip" title="pandas.Series.clip"><code class="xref py py-obj docutils literal"><span class="pre">Series.clip</span></code></a>([下,上,轴])</span></td>
<td><span class="yiyi-st" id="yiyi-1362">修整输入阈值处的值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1363"><a class="reference internal" href="generated/pandas.Series.clip_lower.html#pandas.Series.clip_lower" title="pandas.Series.clip_lower"><code class="xref py py-obj docutils literal"><span class="pre">Series.clip_lower</span></code></a>(threshold [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1364">返回具有低于给定值的值的输入的副本。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1365"><a class="reference internal" href="generated/pandas.Series.clip_upper.html#pandas.Series.clip_upper" title="pandas.Series.clip_upper"><code class="xref py py-obj docutils literal"><span class="pre">Series.clip_upper</span></code></a>(threshold [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1366">返回具有高于给定值的值的输入的副本。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1367"><a class="reference internal" href="generated/pandas.Series.corr.html#pandas.Series.corr" title="pandas.Series.corr"><code class="xref py py-obj docutils literal"><span class="pre">Series.corr</span></code></a>(other [,method,min_periods])</span></td>
<td><span class="yiyi-st" id="yiyi-1368">与<cite>其他</cite>系列计算相关性,不包括缺少的值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1369"><a class="reference internal" href="generated/pandas.Series.count.html#pandas.Series.count" title="pandas.Series.count"><code class="xref py py-obj docutils literal"><span class="pre">Series.count</span></code></a>([level])</span></td>
<td><span class="yiyi-st" id="yiyi-1370">返回系列中非NA /零值观察值的数量</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1371"><a class="reference internal" href="generated/pandas.Series.cov.html#pandas.Series.cov" title="pandas.Series.cov"><code class="xref py py-obj docutils literal"><span class="pre">Series.cov</span></code></a>(其他[,min_periods])</span></td>
<td><span class="yiyi-st" id="yiyi-1372">计算与系列的协方差,不包括缺少的值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1373"><a class="reference internal" href="generated/pandas.Series.cummax.html#pandas.Series.cummax" title="pandas.Series.cummax"><code class="xref py py-obj docutils literal"><span class="pre">Series.cummax</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1374">返回请求轴上的累积最大值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1375"><a class="reference internal" href="generated/pandas.Series.cummin.html#pandas.Series.cummin" title="pandas.Series.cummin"><code class="xref py py-obj docutils literal"><span class="pre">Series.cummin</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1376">返回所请求轴上的累积最小值。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1377"><a class="reference internal" href="generated/pandas.Series.cumprod.html#pandas.Series.cumprod" title="pandas.Series.cumprod"><code class="xref py py-obj docutils literal"><span class="pre">Series.cumprod</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1378">通过请求轴返回累积乘积。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1379"><a class="reference internal" href="generated/pandas.Series.cumsum.html#pandas.Series.cumsum" title="pandas.Series.cumsum"><code class="xref py py-obj docutils literal"><span class="pre">Series.cumsum</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1380">通过请求轴返回累积和。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1381"><a class="reference internal" href="generated/pandas.Series.describe.html#pandas.Series.describe" title="pandas.Series.describe"><code class="xref py py-obj docutils literal"><span class="pre">Series.describe</span></code></a>([percentiles,include,exclude])</span></td>
<td><span class="yiyi-st" id="yiyi-1382">生成各种汇总统计,不包括NaN值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1383"><a class="reference internal" href="generated/pandas.Series.diff.html#pandas.Series.diff" title="pandas.Series.diff"><code class="xref py py-obj docutils literal"><span class="pre">Series.diff</span></code></a>([periods])</span></td>
<td><span class="yiyi-st" id="yiyi-1384">对象的第一离散差异</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1385"><a class="reference internal" href="generated/pandas.Series.factorize.html#pandas.Series.factorize" title="pandas.Series.factorize"><code class="xref py py-obj docutils literal"><span class="pre">Series.factorize</span></code></a>([sort,na_sentinel])</span></td>
<td><span class="yiyi-st" id="yiyi-1386">将对象编码为枚举类型或类别变量</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1387"><a class="reference internal" href="generated/pandas.Series.kurt.html#pandas.Series.kurt" title="pandas.Series.kurt"><code class="xref py py-obj docutils literal"><span class="pre">Series.kurt</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1388">使用Fisher的峰度定义(kurtosis of normal == 0.0)返回无偏的峰度超过请求的轴。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1389"><a class="reference internal" href="generated/pandas.Series.mad.html#pandas.Series.mad" title="pandas.Series.mad"><code class="xref py py-obj docutils literal"><span class="pre">Series.mad</span></code></a>([axis,skipna,level])</span></td>
<td><span class="yiyi-st" id="yiyi-1390">返回请求轴的值的平均绝对偏差</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1391"><a class="reference internal" href="generated/pandas.Series.max.html#pandas.Series.max" title="pandas.Series.max"><code class="xref py py-obj docutils literal"><span class="pre">Series.max</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1392">此方法返回对象中值的最大值。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1393"><a class="reference internal" href="generated/pandas.Series.mean.html#pandas.Series.mean" title="pandas.Series.mean"><code class="xref py py-obj docutils literal"><span class="pre">Series.mean</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1394">返回请求轴的值的平均值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1395"><a class="reference internal" href="generated/pandas.Series.median.html#pandas.Series.median" title="pandas.Series.median"><code class="xref py py-obj docutils literal"><span class="pre">Series.median</span></code></a>([axis,skipna,level,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1396">返回请求轴的值的中值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1397"><a class="reference internal" href="generated/pandas.Series.min.html#pandas.Series.min" title="pandas.Series.min"><code class="xref py py-obj docutils literal"><span class="pre">Series.min</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1398">此方法返回对象中值的最小值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1399"><a class="reference internal" href="generated/pandas.Series.mode.html#pandas.Series.mode" title="pandas.Series.mode"><code class="xref py py-obj docutils literal"><span class="pre">Series.mode</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1400">返回数据集的模式。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1401"><a class="reference internal" href="generated/pandas.Series.nlargest.html#pandas.Series.nlargest" title="pandas.Series.nlargest"><code class="xref py py-obj docutils literal"><span class="pre">Series.nlargest</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1402">返回最大的<cite>n</cite>元素。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1403"><a class="reference internal" href="generated/pandas.Series.nsmallest.html#pandas.Series.nsmallest" title="pandas.Series.nsmallest"><code class="xref py py-obj docutils literal"><span class="pre">Series.nsmallest</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1404">返回最小的<cite>n</cite>元素。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1405"><a class="reference internal" href="generated/pandas.Series.pct_change.html#pandas.Series.pct_change" title="pandas.Series.pct_change"><code class="xref py py-obj docutils literal"><span class="pre">Series.pct_change</span></code></a>([periods,fill_method,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1406">给定周期数的百分比变化。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1407"><a class="reference internal" href="generated/pandas.Series.prod.html#pandas.Series.prod" title="pandas.Series.prod"><code class="xref py py-obj docutils literal"><span class="pre">Series.prod</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1408">返回请求轴的值的乘积</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1409"><a class="reference internal" href="generated/pandas.Series.quantile.html#pandas.Series.quantile" title="pandas.Series.quantile"><code class="xref py py-obj docutils literal"><span class="pre">Series.quantile</span></code></a>([q,interpolation])</span></td>
<td><span class="yiyi-st" id="yiyi-1410">返回给定分位数的值,即一个数字。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1411"><a class="reference internal" href="generated/pandas.Series.rank.html#pandas.Series.rank" title="pandas.Series.rank"><code class="xref py py-obj docutils literal"><span class="pre">Series.rank</span></code></a>([axis,method,numeric_only,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1412">沿轴计算数值数据(1到n)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1413"><a class="reference internal" href="generated/pandas.Series.sem.html#pandas.Series.sem" title="pandas.Series.sem"><code class="xref py py-obj docutils literal"><span class="pre">Series.sem</span></code></a>([axis,skipna,level,ddof,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1414">返回所要求轴的平均值的无偏差标准误差。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1415"><a class="reference internal" href="generated/pandas.Series.skew.html#pandas.Series.skew" title="pandas.Series.skew"><code class="xref py py-obj docutils literal"><span class="pre">Series.skew</span></code></a>([axis, skipna, level, numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1416">返回所请求轴的无偏斜</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1417"><a class="reference internal" href="generated/pandas.Series.std.html#pandas.Series.std" title="pandas.Series.std"><code class="xref py py-obj docutils literal"><span class="pre">Series.std</span></code></a>([axis,skipna,level,ddof,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1418">返回样品标准偏差超过请求的轴。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1419"><a class="reference internal" href="generated/pandas.Series.sum.html#pandas.Series.sum" title="pandas.Series.sum"><code class="xref py py-obj docutils literal"><span class="pre">Series.sum</span></code></a>([axis,skipna,level,numeric_only])</span></td>
<td><span class="yiyi-st" id="yiyi-1420">返回请求轴的值的总和</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1421"><a class="reference internal" href="generated/pandas.Series.var.html#pandas.Series.var" title="pandas.Series.var"><code class="xref py py-obj docutils literal"><span class="pre">Series.var</span></code></a>([axis,skipna,level,ddof,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1422">返回与请求轴无关的方差。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1423"><a class="reference internal" href="generated/pandas.Series.unique.html#pandas.Series.unique" title="pandas.Series.unique"><code class="xref py py-obj docutils literal"><span class="pre">Series.unique</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1424">返回对象中的唯一值的np.ndarray。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1425"><a class="reference internal" href="generated/pandas.Series.nunique.html#pandas.Series.nunique" title="pandas.Series.nunique"><code class="xref py py-obj docutils literal"><span class="pre">Series.nunique</span></code></a>([dropna])</span></td>
<td><span class="yiyi-st" id="yiyi-1426">返回对象中唯一元素的数量。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1427"><a class="reference internal" href="generated/pandas.Series.is_unique.html#pandas.Series.is_unique" title="pandas.Series.is_unique"><code class="xref py py-obj docutils literal"><span class="pre">Series.is_unique</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1428">如果对象中的值是唯一的,则返回布尔值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1429"><a class="reference internal" href="generated/pandas.Series.is_monotonic.html#pandas.Series.is_monotonic" title="pandas.Series.is_monotonic"><code class="xref py py-obj docutils literal"><span class="pre">Series.is_monotonic</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1430">如果对象中的值为,则返回布尔值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1431"><a class="reference internal" href="generated/pandas.Series.is_monotonic_increasing.html#pandas.Series.is_monotonic_increasing" title="pandas.Series.is_monotonic_increasing"><code class="xref py py-obj docutils literal"><span class="pre">Series.is_monotonic_increasing</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1432">如果对象中的值为,则返回布尔值</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1433"><a class="reference internal" href="generated/pandas.Series.is_monotonic_decreasing.html#pandas.Series.is_monotonic_decreasing" title="pandas.Series.is_monotonic_decreasing"><code class="xref py py-obj docutils literal"><span class="pre">Series.is_monotonic_decreasing</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1434">如果对象中的值为,则返回布尔值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1435"><a class="reference internal" href="generated/pandas.Series.value_counts.html#pandas.Series.value_counts" title="pandas.Series.value_counts"><code class="xref py py-obj docutils literal"><span class="pre">Series.value_counts</span></code></a>([normalize,sort,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1436">返回包含唯一值计数的对象。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="reindexing-selection-label-manipulation">
<h3><span class="yiyi-st" id="yiyi-1437">重新索引/选择/标签操作</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1438"><a class="reference internal" href="generated/pandas.Series.align.html#pandas.Series.align" title="pandas.Series.align"><code class="xref py py-obj docutils literal"><span class="pre">Series.align</span></code></a>(其他[,join,axis,level,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1439">将它们的轴上的两个对象与</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1440"><a class="reference internal" href="generated/pandas.Series.drop.html#pandas.Series.drop" title="pandas.Series.drop"><code class="xref py py-obj docutils literal"><span class="pre">Series.drop</span></code></a>(标签[,axis,level,inplace,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1441">返回请求轴中标签已删除的新对象。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1442"><a class="reference internal" href="generated/pandas.Series.drop_duplicates.html#pandas.Series.drop_duplicates" title="pandas.Series.drop_duplicates"><code class="xref py py-obj docutils literal"><span class="pre">Series.drop_duplicates</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1443">删除重复值的返回系列</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1444"><a class="reference internal" href="generated/pandas.Series.duplicated.html#pandas.Series.duplicated" title="pandas.Series.duplicated"><code class="xref py py-obj docutils literal"><span class="pre">Series.duplicated</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1445">返回boolean表示重复值的系列</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1446"><a class="reference internal" href="generated/pandas.Series.equals.html#pandas.Series.equals" title="pandas.Series.equals"><code class="xref py py-obj docutils literal"><span class="pre">Series.equals</span></code></a>(other)</span></td>
<td><span class="yiyi-st" id="yiyi-1447">确定两个NDFrame对象是否包含相同的元素。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1448"><a class="reference internal" href="generated/pandas.Series.first.html#pandas.Series.first" title="pandas.Series.first"><code class="xref py py-obj docutils literal"><span class="pre">Series.first</span></code></a>(offset)</span></td>
<td><span class="yiyi-st" id="yiyi-1449">用于基于日期偏移对时间序列数据的初始时间进行子集化的便利方法。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1450"><a class="reference internal" href="generated/pandas.Series.head.html#pandas.Series.head" title="pandas.Series.head"><code class="xref py py-obj docutils literal"><span class="pre">Series.head</span></code></a>([n])</span></td>
<td><span class="yiyi-st" id="yiyi-1451">返回前n行</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1452"><a class="reference internal" href="generated/pandas.Series.idxmax.html#pandas.Series.idxmax" title="pandas.Series.idxmax"><code class="xref py py-obj docutils literal"><span class="pre">Series.idxmax</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1453">首次出现最大值的索引。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1454"><a class="reference internal" href="generated/pandas.Series.idxmin.html#pandas.Series.idxmin" title="pandas.Series.idxmin"><code class="xref py py-obj docutils literal"><span class="pre">Series.idxmin</span></code></a>([axis,skipna])</span></td>
<td><span class="yiyi-st" id="yiyi-1455">首次出现最小值的索引。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1456"><a class="reference internal" href="generated/pandas.Series.isin.html#pandas.Series.isin" title="pandas.Series.isin"><code class="xref py py-obj docutils literal"><span class="pre">Series.isin</span></code></a>(values)</span></td>
<td><span class="yiyi-st" id="yiyi-1457">返回布尔<a class="reference internal" href="generated/pandas.Series.html#pandas.Series" title="pandas.Series"><code class="xref py py-class docutils literal"><span class="pre">Series</span></code></a>,显示<a class="reference internal" href="generated/pandas.Series.html#pandas.Series" title="pandas.Series"><code class="xref py py-class docutils literal"><span class="pre">Series</span></code></a>中的每个元素是否完全包含在传递的<code class="docutils literal"><span class="pre">values</span></code>序列中。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1458"><a class="reference internal" href="generated/pandas.Series.last.html#pandas.Series.last" title="pandas.Series.last"><code class="xref py py-obj docutils literal"><span class="pre">Series.last</span></code></a>(offset)</span></td>
<td><span class="yiyi-st" id="yiyi-1459">基于日期偏移对时间序列数据的最终周期子集化的便利方法。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1460"><a class="reference internal" href="generated/pandas.Series.reindex.html#pandas.Series.reindex" title="pandas.Series.reindex"><code class="xref py py-obj docutils literal"><span class="pre">Series.reindex</span></code></a>([index])</span></td>
<td><span class="yiyi-st" id="yiyi-1461">使用可选填充逻辑将系列更新为新索引,将NA / NaN放在前一个索引中没有值的位置。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1462"><a class="reference internal" href="generated/pandas.Series.reindex_like.html#pandas.Series.reindex_like" title="pandas.Series.reindex_like"><code class="xref py py-obj docutils literal"><span class="pre">Series.reindex_like</span></code></a>(other [,method,copy,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1463">将具有匹配索引的对象返回给我自己。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1464"><a class="reference internal" href="generated/pandas.Series.rename.html#pandas.Series.rename" title="pandas.Series.rename"><code class="xref py py-obj docutils literal"><span class="pre">Series.rename</span></code></a>([index])</span></td>
<td><span class="yiyi-st" id="yiyi-1465">改变轴输入功能。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1466"><a class="reference internal" href="generated/pandas.Series.rename_axis.html#pandas.Series.rename_axis" title="pandas.Series.rename_axis"><code class="xref py py-obj docutils literal"><span class="pre">Series.rename_axis</span></code></a>(mapper [,axis,copy,inplace])</span></td>
<td><span class="yiyi-st" id="yiyi-1467">使用输入函数或函数修改索引和/或列。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1468"><a class="reference internal" href="generated/pandas.Series.reset_index.html#pandas.Series.reset_index" title="pandas.Series.reset_index"><code class="xref py py-obj docutils literal"><span class="pre">Series.reset_index</span></code></a>([level,drop,name,inplace])</span></td>
<td><span class="yiyi-st" id="yiyi-1469">类似于<a class="reference internal" href="generated/pandas.DataFrame.reset_index.html#pandas.DataFrame.reset_index" title="pandas.DataFrame.reset_index"><code class="xref py py-meth docutils literal"><span class="pre">pandas.DataFrame.reset_index()</span></code></a>函数,请参见docstring。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1470"><a class="reference internal" href="generated/pandas.Series.sample.html#pandas.Series.sample" title="pandas.Series.sample"><code class="xref py py-obj docutils literal"><span class="pre">Series.sample</span></code></a>([n,frac,replace,weights,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1471">从对象的轴返回项目的随机样本。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1472"><a class="reference internal" href="generated/pandas.Series.select.html#pandas.Series.select" title="pandas.Series.select"><code class="xref py py-obj docutils literal"><span class="pre">Series.select</span></code></a>(crit [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1473">返回与轴标签匹配条件相对应的数据</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1474"><a class="reference internal" href="generated/pandas.Series.take.html#pandas.Series.take" title="pandas.Series.take"><code class="xref py py-obj docutils literal"><span class="pre">Series.take</span></code></a>(indices [,axis,convert,is_copy])</span></td>
<td><span class="yiyi-st" id="yiyi-1475">return对应于请求的索引</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1476"><a class="reference internal" href="generated/pandas.Series.tail.html#pandas.Series.tail" title="pandas.Series.tail"><code class="xref py py-obj docutils literal"><span class="pre">Series.tail</span></code></a>([n])</span></td>
<td><span class="yiyi-st" id="yiyi-1477">返回最后n行</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1478"><a class="reference internal" href="generated/pandas.Series.truncate.html#pandas.Series.truncate" title="pandas.Series.truncate"><code class="xref py py-obj docutils literal"><span class="pre">Series.truncate</span></code></a>([before,after,axis,copy])</span></td>
<td><span class="yiyi-st" id="yiyi-1479">在某个特定索引值之前和/或之后截断排序的NDFrame。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1480"><a class="reference internal" href="generated/pandas.Series.where.html#pandas.Series.where" title="pandas.Series.where"><code class="xref py py-obj docutils literal"><span class="pre">Series.where</span></code></a>(cond [,other,inplace,axis,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1481">返回一个与self相同形状的对象,其对应的条目来自self,其中cond为True,否则为其他对象。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1482"><a class="reference internal" href="generated/pandas.Series.mask.html#pandas.Series.mask" title="pandas.Series.mask"><code class="xref py py-obj docutils literal"><span class="pre">Series.mask</span></code></a>(cond [,other,inplace,axis,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1483">返回一个与self相同形状的对象,并且其对应的条目来自self,其中cond是False,否则是来自其他。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="missing-data-handling">
<h3><span class="yiyi-st" id="yiyi-1484">缺少数据处理</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1485"><a class="reference internal" href="generated/pandas.Series.dropna.html#pandas.Series.dropna" title="pandas.Series.dropna"><code class="xref py py-obj docutils literal"><span class="pre">Series.dropna</span></code></a>([axis,inplace])</span></td>
<td><span class="yiyi-st" id="yiyi-1486">返回无null值的系列</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1487"><a class="reference internal" href="generated/pandas.Series.fillna.html#pandas.Series.fillna" title="pandas.Series.fillna"><code class="xref py py-obj docutils literal"><span class="pre">Series.fillna</span></code></a>([value,method,axis,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1488">使用指定的方法填充NA / NaN值</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1489"><a class="reference internal" href="generated/pandas.Series.interpolate.html#pandas.Series.interpolate" title="pandas.Series.interpolate"><code class="xref py py-obj docutils literal"><span class="pre">Series.interpolate</span></code></a>([method,axis,limit,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1490">根据不同的方法内插值。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="reshaping-sorting">
<h3><span class="yiyi-st" id="yiyi-1491">重新整形,排序</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1492"><a class="reference internal" href="generated/pandas.Series.argsort.html#pandas.Series.argsort" title="pandas.Series.argsort"><code class="xref py py-obj docutils literal"><span class="pre">Series.argsort</span></code></a>([axis,kind,order])</span></td>
<td><span class="yiyi-st" id="yiyi-1493">覆盖ndarray.argsort。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1494"><a class="reference internal" href="generated/pandas.Series.reorder_levels.html#pandas.Series.reorder_levels" title="pandas.Series.reorder_levels"><code class="xref py py-obj docutils literal"><span class="pre">Series.reorder_levels</span></code></a>(order)</span></td>
<td><span class="yiyi-st" id="yiyi-1495">使用输入顺序重新排列索引级别。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1496"><a class="reference internal" href="generated/pandas.Series.sort_values.html#pandas.Series.sort_values" title="pandas.Series.sort_values"><code class="xref py py-obj docutils literal"><span class="pre">Series.sort_values</span></code></a>([axis,ascending,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1497">按任一轴的值排序</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1498"><a class="reference internal" href="generated/pandas.Series.sort_index.html#pandas.Series.sort_index" title="pandas.Series.sort_index"><code class="xref py py-obj docutils literal"><span class="pre">Series.sort_index</span></code></a>([axis,level,ascending,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1499">按标签(沿轴)对对象排序</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1500"><a class="reference internal" href="generated/pandas.Series.sortlevel.html#pandas.Series.sortlevel" title="pandas.Series.sortlevel"><code class="xref py py-obj docutils literal"><span class="pre">Series.sortlevel</span></code></a>([level,ascending,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1501">按所选级别对MultiIndex进行排序。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1502"><a class="reference internal" href="generated/pandas.Series.swaplevel.html#pandas.Series.swaplevel" title="pandas.Series.swaplevel"><code class="xref py py-obj docutils literal"><span class="pre">Series.swaplevel</span></code></a>([i,j,copy])</span></td>
<td><span class="yiyi-st" id="yiyi-1503">在MultiIndex中交换级别i和j</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1504"><a class="reference internal" href="generated/pandas.Series.unstack.html#pandas.Series.unstack" title="pandas.Series.unstack"><code class="xref py py-obj docutils literal"><span class="pre">Series.unstack</span></code></a>([level,fill_value])</span></td>
<td><span class="yiyi-st" id="yiyi-1505">Unstack,a.k.a.</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1506"><a class="reference internal" href="generated/pandas.Series.searchsorted.html#pandas.Series.searchsorted" title="pandas.Series.searchsorted"><code class="xref py py-obj docutils literal"><span class="pre">Series.searchsorted</span></code></a>(v [,side,sorter])</span></td>
<td><span class="yiyi-st" id="yiyi-1507">查找要插入元素以维持顺序的索引。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="combining-joining-merging">
<h3><span class="yiyi-st" id="yiyi-1508">组合/加入/合并</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1509"><a class="reference internal" href="generated/pandas.Series.append.html#pandas.Series.append" title="pandas.Series.append"><code class="xref py py-obj docutils literal"><span class="pre">Series.append</span></code></a>(to_append [,ignore_index,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1510">串联两个或更多系列。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1511"><a class="reference internal" href="generated/pandas.Series.replace.html#pandas.Series.replace" title="pandas.Series.replace"><code class="xref py py-obj docutils literal"><span class="pre">Series.replace</span></code></a>([to_replace,value,inplace,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1512">将'to_replace'中给出的值替换为'value'。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1513"><a class="reference internal" href="generated/pandas.Series.update.html#pandas.Series.update" title="pandas.Series.update"><code class="xref py py-obj docutils literal"><span class="pre">Series.update</span></code></a>(other)</span></td>
<td><span class="yiyi-st" id="yiyi-1514">使用通过的系列中的非NA值修改系列。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="time-series-related">
<h3><span class="yiyi-st" id="yiyi-1515">时间序列相关的</span></h3>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1516"><a class="reference internal" href="generated/pandas.Series.asfreq.html#pandas.Series.asfreq" title="pandas.Series.asfreq"><code class="xref py py-obj docutils literal"><span class="pre">Series.asfreq</span></code></a>(freq [,method,how,normalize])</span></td>
<td><span class="yiyi-st" id="yiyi-1517">将TimeSeries转换为指定的频率。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1518"><a class="reference internal" href="generated/pandas.Series.asof.html#pandas.Series.asof" title="pandas.Series.asof"><code class="xref py py-obj docutils literal"><span class="pre">Series.asof</span></code></a>(其中[,subset])</span></td>
<td><span class="yiyi-st" id="yiyi-1519">最后一行没有任何NaN被采取(或最后一行没有</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1520"><a class="reference internal" href="generated/pandas.Series.shift.html#pandas.Series.shift" title="pandas.Series.shift"><code class="xref py py-obj docutils literal"><span class="pre">Series.shift</span></code></a>([periods,freq,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-1521">使用可选的时间频率按期望的周期数切换索引</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1522"><a class="reference internal" href="generated/pandas.Series.first_valid_index.html#pandas.Series.first_valid_index" title="pandas.Series.first_valid_index"><code class="xref py py-obj docutils literal"><span class="pre">Series.first_valid_index</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1523">返回第一个非NA /空值的标签</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1524"><a class="reference internal" href="generated/pandas.Series.last_valid_index.html#pandas.Series.last_valid_index" title="pandas.Series.last_valid_index"><code class="xref py py-obj docutils literal"><span class="pre">Series.last_valid_index</span></code></a>()</span></td>
<td><span class="yiyi-st" id="yiyi-1525">返回最后一个非NA /空值的标签</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1526"><a class="reference internal" href="generated/pandas.Series.resample.html#pandas.Series.resample" title="pandas.Series.resample"><code class="xref py py-obj docutils literal"><span class="pre">Series.resample</span></code></a>(rule [,how,axis,...])</span></td>
<td><span class="yiyi-st" id="yiyi-1527">时间序列的频率转换和重采样的方便方法。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1528"><a class="reference internal" href="generated/pandas.Series.tz_convert.html#pandas.Series.tz_convert" title="pandas.Series.tz_convert"><code class="xref py py-obj docutils literal"><span class="pre">Series.tz_convert</span></code></a>(tz [,axis,level,copy])</span></td>
<td><span class="yiyi-st" id="yiyi-1529">将tz感知轴转换为目标时区。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1530"><a class="reference internal" href="generated/pandas.Series.tz_localize.html#pandas.Series.tz_localize" title="pandas.Series.tz_localize"><code class="xref py py-obj docutils literal"><span class="pre">Series.tz_localize</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-1531">将tz-naive TimeSeries本地化为目标时区。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="datetimelike-properties">
<h3><span class="yiyi-st" id="yiyi-1532">Datetimelike属性</span></h3>
<p><span class="yiyi-st" id="yiyi-1533"><code class="docutils literal"><span class="pre">Series.dt</span></code>可用于以datetimelike访问系列的值,并返回多个属性。</span><span class="yiyi-st" id="yiyi-1534">这些可以像<code class="docutils literal"><span class="pre">Series.dt.<property></span></code>一样访问。</span></p>
<p><span class="yiyi-st" id="yiyi-1535"><strong>日期时间属性</strong></span></p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1536"><a class="reference internal" href="generated/pandas.Series.dt.date.html#pandas.Series.dt.date" title="pandas.Series.dt.date"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.date</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1537">返回numpy数组的python datetime.date对象(即,没有时区信息的时间戳的日期部分)。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1538"><a class="reference internal" href="generated/pandas.Series.dt.time.html#pandas.Series.dt.time" title="pandas.Series.dt.time"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.time</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1539">返回datetime.time的numpy数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1540"><a class="reference internal" href="generated/pandas.Series.dt.year.html#pandas.Series.dt.year" title="pandas.Series.dt.year"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.year</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1541">datetime的年份</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1542"><a class="reference internal" href="generated/pandas.Series.dt.month.html#pandas.Series.dt.month" title="pandas.Series.dt.month"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.month</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1543">月份为1月= 1月,12月= 12月</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1544"><a class="reference internal" href="generated/pandas.Series.dt.day.html#pandas.Series.dt.day" title="pandas.Series.dt.day"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.day</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1545">datetime的日期</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1546"><a class="reference internal" href="generated/pandas.Series.dt.hour.html#pandas.Series.dt.hour" title="pandas.Series.dt.hour"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.hour</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1547">datetime的小时数</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1548"><a class="reference internal" href="generated/pandas.Series.dt.minute.html#pandas.Series.dt.minute" title="pandas.Series.dt.minute"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.minute</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1549">datetime的分钟</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1550"><a class="reference internal" href="generated/pandas.Series.dt.second.html#pandas.Series.dt.second" title="pandas.Series.dt.second"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.second</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1551">datetime的秒数</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1552"><a class="reference internal" href="generated/pandas.Series.dt.microsecond.html#pandas.Series.dt.microsecond" title="pandas.Series.dt.microsecond"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.microsecond</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1553">datetime的微秒</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1554"><a class="reference internal" href="generated/pandas.Series.dt.nanosecond.html#pandas.Series.dt.nanosecond" title="pandas.Series.dt.nanosecond"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.nanosecond</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1555">datetime的纳秒</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1556"><a class="reference internal" href="generated/pandas.Series.dt.week.html#pandas.Series.dt.week" title="pandas.Series.dt.week"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.week</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1557">一年的周数</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1558"><a class="reference internal" href="generated/pandas.Series.dt.weekofyear.html#pandas.Series.dt.weekofyear" title="pandas.Series.dt.weekofyear"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.weekofyear</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1559">一年的周数</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1560"><a class="reference internal" href="generated/pandas.Series.dt.dayofweek.html#pandas.Series.dt.dayofweek" title="pandas.Series.dt.dayofweek"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.dayofweek</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1561">一周中的星期几,星期一= 0,星期六= 6</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-1562"><a class="reference internal" href="generated/pandas.Series.dt.weekday.html#pandas.Series.dt.weekday" title="pandas.Series.dt.weekday"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.weekday</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-1563">一周中的星期几,星期一= 0,星期六= 6</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-1564"><a class="reference internal" href="generated/pandas.Series.dt.weekday_name.html#pandas.Series.dt.weekday_name" title="pandas.Series.dt.weekday_name"><code class="xref py py-obj docutils literal"><span class="pre">Series.dt.weekday_name</span></code></a></span></td>