@@ -291,7 +291,7 @@ def _to_uni(x):
291
291
elif r_dtype == 'p' :
292
292
r_dtype = 'O'
293
293
recons .index = np .array (
294
- list (map (Timestamp , recons .index . to_datetime ( ))),
294
+ list (map (Timestamp , to_datetime ( recons .index ))),
295
295
dtype = r_dtype )
296
296
df .index = np .array (
297
297
list (map (Timestamp , df .index .to_datetime ())),
@@ -316,7 +316,7 @@ def _to_uni(x):
316
316
elif c_dtype == 'p' :
317
317
c_dtype = 'O'
318
318
recons .columns = np .array (
319
- lmap (Timestamp , recons .columns . to_datetime ( )),
319
+ lmap (Timestamp , to_datetime ( recons .columns )),
320
320
dtype = c_dtype )
321
321
df .columns = np .array (
322
322
lmap (Timestamp , df .columns .to_datetime ()),
@@ -1157,3 +1157,9 @@ def test_to_csv_quoting(self):
1157
1157
df = df .set_index (['a' , 'b' ])
1158
1158
expected = '"a","b","c"\n "1","3","5"\n "2","4","6"\n '
1159
1159
self .assertEqual (df .to_csv (quoting = csv .QUOTE_ALL ), expected )
1160
+
1161
+
1162
+ if __name__ == '__main__' :
1163
+ import nose
1164
+ nose .runmodule (argv = [__file__ , '-vvs' , '-x' , '--pdb' , '--pdb-failure' ],
1165
+ exit = False )
0 commit comments