@@ -363,11 +363,11 @@ class DataFrame(NDFrame):
363
363
364
364
See also
365
365
--------
366
- DataFrame.from_records: constructor from tuples, also record arrays
367
- DataFrame.from_dict: from dicts of Series, arrays, or dicts
368
- DataFrame.from_csv: from CSV files
369
- DataFrame.from_items: from sequence of (key, value) pairs
370
- read_csv / read_table / read_clipboard
366
+ DataFrame.from_records : constructor from tuples, also record arrays
367
+ DataFrame.from_dict : from dicts of Series, arrays, or dicts
368
+ DataFrame.from_csv : from CSV files
369
+ DataFrame.from_items : from sequence of (key, value) pairs
370
+ pandas. read_csv, pandas. read_table, pandas. read_clipboard
371
371
"""
372
372
_auto_consolidate = True
373
373
_verbose_info = True
@@ -943,7 +943,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
943
943
index : string, list of fields, array-like
944
944
Field of array to use as the index, alternately a specific set of
945
945
input labels to use
946
- exclude: sequence, default None
946
+ exclude : sequence, default None
947
947
Columns or fields to exclude
948
948
columns : sequence, default None
949
949
Column names to use. If the passed data do not have named
@@ -1378,15 +1378,17 @@ def to_excel(self, excel_writer, sheet_name='sheet1', na_rep='',
1378
1378
Column label for index column(s) if desired. If None is given, and
1379
1379
`header` and `index` are True, then the index names are used. A
1380
1380
sequence should be given if the DataFrame uses MultiIndex.
1381
- startow : upper left cell row to dump data frame
1382
- startcol : upper left cell column to dump data frame
1383
-
1381
+ startow :
1382
+ upper left cell row to dump data frame
1383
+ startcol :
1384
+ upper left cell column to dump data frame
1384
1385
1385
1386
Notes
1386
1387
-----
1387
1388
If passing an existing ExcelWriter object, then the sheet will be added
1388
1389
to the existing workbook. This can be used to save different
1389
- DataFrames to one workbook
1390
+ DataFrames to one workbook::
1391
+
1390
1392
>>> writer = ExcelWriter('output.xlsx')
1391
1393
>>> df1.to_excel(writer,'sheet1')
1392
1394
>>> df2.to_excel(writer,'sheet2')
@@ -2070,7 +2072,7 @@ def xs(self, key, axis=0, level=None, copy=True, drop_level=True):
2070
2072
which levels are used. Levels can be referred by label or position.
2071
2073
copy : boolean, default True
2072
2074
Whether to make a copy of the data
2073
- drop_level, default True
2075
+ drop_level : boolean , default True
2074
2076
If False, returns object with same levels as self.
2075
2077
2076
2078
Examples
@@ -3775,9 +3777,9 @@ def corr(self, method='pearson', min_periods=1):
3775
3777
Parameters
3776
3778
----------
3777
3779
method : {'pearson', 'kendall', 'spearman'}
3778
- pearson : standard correlation coefficient
3779
- kendall : Kendall Tau correlation coefficient
3780
- spearman : Spearman rank correlation
3780
+ * pearson : standard correlation coefficient
3781
+ * kendall : Kendall Tau correlation coefficient
3782
+ * spearman : Spearman rank correlation
3781
3783
min_periods : int, optional
3782
3784
Minimum number of observations required per pair of columns
3783
3785
to have a valid result. Currently only available for pearson
0 commit comments