forked from pandas-dev/pandas
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
astype checks notnull Fixes: pandas-dev#8732 added benchmark,added nu…
…ll check
- Loading branch information
Vikram Bhandoh
committed
Nov 29, 2014
1 parent
0a2ea0a
commit bea542a
Showing
7 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from vbench.api import Benchmark | ||
|
||
common_setup = """from pandas_vb_common import * | ||
from datetime import timedelta | ||
import pandas as pd | ||
import numpy as np | ||
N = 1000000 | ||
arr = np.random.randint(1,10,size=1000000) | ||
s = pd.Series(arr) | ||
""" | ||
|
||
astype_test = Benchmark('s.astype(np.str)', | ||
common_setup, | ||
name='astype_test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
'indexing', | ||
'io_bench', | ||
'io_sql', | ||
'astype', | ||
'inference', | ||
'hdfstore_bench', | ||
'join_merge', | ||
|