Skip to content

Instantly share code, notes, and snippets.

@changhiskhan
Created October 25, 2013 18:46
Show Gist options
  • Save changhiskhan/7159783 to your computer and use it in GitHub Desktop.
Save changhiskhan/7159783 to your computer and use it in GitHub Desktop.
pandas docs error 3
[u"DataFrame.to_latex(buf=None, columns=None, col_space=None, colSpace=None, header=True, index=True, na_rep='NaN', formatters=None, float_format=None, sparsify=None, index_names=True, bold_rows=True, force_unicode=None)", u':module: pandas', u'', u'', u'', u'to_latex-specific options', u'bold_rows : boolean, default True', u' Make the row labels bold in the output', u'', u'Render a DataFrame to a tabular environment table.', u'You can splice this into a LaTeX document.', u'', u':Parameters:', u'', u' **frame** : DataFrame', u'', u' object to render', u'', u' **buf** : StringIO-like, optional', u'', u' buffer to write to', u'', u' **columns** : sequence, optional', u'', u' the subset of columns to write; default None writes all columns', u'', u' **col_space** : int, optional', u'', u' the minimum width of each column', u'', u' **header** : bool, optional', u'', u' whether to print column labels, default True', u'', u' **index** : bool, optional', u'', u' whether to print index (row) labels, default True', u'', u' **na_rep** : string, optional', u'', u" string representation of NAN to use, default 'NaN'", u'', u' **formatters** : list or dict of one-parameter functions, optional', u'', u" formatter functions to apply to columns' elements by position or name,", u' default None, if the result is a string , it must be a unicode', u' string. List must be of length equal to the number of columns.', u'', u' **float_format** : one-parameter function, optional', u'', u" formatter function to apply to columns' elements if they are floats", u' default None', u'', u' **sparsify** : bool, optional', u'', u' Set to False for a DataFrame with a hierarchical index to print every', u' multiindex key at each row, default True', u'', u" **justify** : {'left', 'right'}, default None", u'', u' Left or right-justify the column labels. If None uses the option from', u" the print configuration (controlled by set_option), 'right' out", u' of the box.', u'', u' **index_names** : bool, optional', u'', u' Prints the names of the indexes, default True', u'', u' **force_unicode** : bool, default False', u'', u' Always return a unicode result. Deprecated in v0.10.0 as string', u' formatting is now rendered to unicode by default.', u'', u':Returns:', u'', u' **formatted** : string (or unicode, depending on data and options)']:5: ERROR: Unexpected indentation.
/home/chang/tmp/doc_pandas/pandas/tseries/index.py:docstring of pandas.DatetimeIndex.flags:35: ERROR: Malformed table.
Column span alignment problem in table line 9.
================ ==========
C_CONTIGUOUS (C)
The data is in a single, C-style contiguous segment.
F_CONTIGUOUS (F)
The data is in a single, Fortran-style contiguous segment.
OWNDATA (O)
The array owns the memory it uses or borrows it from another object.
WRITEABLE (W)
The data area can be written to. Setting this to False locks
the data, making it read-only. A view (slice, etc.) inherits WRITEABLE
from its base array at creation time, but a view of a writeable
array may be subsequently locked while the base array remains writeable.
(The opposite is not true, in that a view of a locked array may not
be made writeable. However, currently, locking a base object does not
lock any views that already reference it, so under that circumstance it
is possible to alter the contents of a locked array via a previously
created writeable view onto it.) Attempting to change a non-writeable
array raises a RuntimeError exception.
ALIGNED (A)
The data and strides are aligned appropriately for the hardware.
UPDATEIFCOPY (U)
This array is a copy of some other array. When this array is
deallocated, the base array will be updated with the contents of
this array.
FNC
F_CONTIGUOUS and not C_CONTIGUOUS.
FORC
F_CONTIGUOUS or C_CONTIGUOUS (one-segment test).
BEHAVED (B)
ALIGNED and WRITEABLE.
CARRAY (CA)
BEHAVED and C_CONTIGUOUS.
FARRAY (FA)
BEHAVED and F_CONTIGUOUS and not C_CONTIGUOUS.
================ ==========
/home/chang/tmp/doc_pandas/pandas/core/index.py:docstring of pandas.Index.flags:35: ERROR: Malformed table.
Column span alignment problem in table line 9.
================ ==========
C_CONTIGUOUS (C)
The data is in a single, C-style contiguous segment.
F_CONTIGUOUS (F)
The data is in a single, Fortran-style contiguous segment.
OWNDATA (O)
The array owns the memory it uses or borrows it from another object.
WRITEABLE (W)
The data area can be written to. Setting this to False locks
the data, making it read-only. A view (slice, etc.) inherits WRITEABLE
from its base array at creation time, but a view of a writeable
array may be subsequently locked while the base array remains writeable.
(The opposite is not true, in that a view of a locked array may not
be made writeable. However, currently, locking a base object does not
lock any views that already reference it, so under that circumstance it
is possible to alter the contents of a locked array via a previously
created writeable view onto it.) Attempting to change a non-writeable
array raises a RuntimeError exception.
ALIGNED (A)
The data and strides are aligned appropriately for the hardware.
UPDATEIFCOPY (U)
This array is a copy of some other array. When this array is
deallocated, the base array will be updated with the contents of
this array.
FNC
F_CONTIGUOUS and not C_CONTIGUOUS.
FORC
F_CONTIGUOUS or C_CONTIGUOUS (one-segment test).
BEHAVED (B)
ALIGNED and WRITEABLE.
CARRAY (CA)
BEHAVED and C_CONTIGUOUS.
FARRAY (FA)
BEHAVED and F_CONTIGUOUS and not C_CONTIGUOUS.
================ ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment