MCPcopy Create free account
hub / github.com/apache/arrow / setup

Method setup

python/benchmarks/convert_pandas.py:93–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 # ARROW-4629
92
93 def setup(self):
94 ser = pd.Series(range(10000))
95 df = pd.DataFrame({col: ser.copy(deep=True) for col in range(100)})
96 # Simulate a real dataset by converting some columns to strings
97 self.df = df.astype({col: str for col in range(50)})
98
99 def time_Table_from_pandas(self):
100 for _ in range(50):

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected