Skip to content

Commit b4904f8

Browse files
committed
DOC: Add common error message to byte-ordering gotcha.
1 parent 61b141b commit b4904f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/source/gotchas.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,15 @@ parse HTML tables in the top-level pandas io function ``read_html``.
533533
Byte-Ordering Issues
534534
--------------------
535535
Occasionally you may have to deal with data that were created on a machine with
536-
a different byte order than the one on which you are running Python. To deal
536+
a different byte order than the one on which you are running Python. A common symptom of this issue is an error like
537+
538+
.. code-block:: python
539+
540+
Traceback
541+
...
542+
ValueError: Big-endian buffer not supported on little-endian compiler
543+
544+
To deal
537545
with this issue you should convert the underlying NumPy array to the native
538546
system byte order *before* passing it to Series/DataFrame/Panel constructors
539547
using something similar to the following:

0 commit comments

Comments
 (0)