--- build/html/user_guide/Orig_io.html 2019-08-23 21:06:44.000000000 +0530 +++ build/html/user_guide/io.html 2019-08-22 20:09:45.000000000 +0530 @@ -7,7 +7,7 @@
-['bar', 'foo']
order.
If callable, the callable function will be evaluated against the column names, returning names where the callable function evaluates to True:
-In [1]: from io import StringIO, BytesIO
+In [1]: import pandas as pd
-In [2]: data = ('col1,col2,col3\n'
+In [2]: pd.options.display.max_rows = 15
+
+In [3]: from io import StringIO
+
+In [4]: data = ('col1,col2,col3\n'
...: 'a,b,1\n'
...: 'a,b,2\n'
...: 'c,d,3')
...:
-In [3]: pd.read_csv(StringIO(data))
-Out[3]:
+In [5]: pd.read_csv(StringIO(data))
+Out[5]:
col1 col2 col3
0 a b 1
1 a b 2
2 c d 3
-In [4]: pd.read_csv(StringIO(data), usecols=lambda x: x.upper() in ['COL1', 'COL3'])
-