Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
8926f0e8
Commit
8926f0e8
authored
Jun 14, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin: Remove redundant pandas code
parent
a311d424
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
product/Wendelin/__init__.py
product/Wendelin/__init__.py
+2
-18
No files found.
product/Wendelin/__init__.py
View file @
8926f0e8
...
@@ -62,22 +62,10 @@ allow_module('sklearn.linear_model')
...
@@ -62,22 +62,10 @@ allow_module('sklearn.linear_model')
allow_module
(
'scipy'
)
allow_module
(
'scipy'
)
allow_module
(
'wendelin.bigarray.array_zodb'
)
allow_module
(
'wendelin.bigarray.array_zodb'
)
allow_module
(
'pandas'
)
allow_type
(
np
.
timedelta64
)
allow_type
(
np
.
timedelta64
)
allow_type
(
type
(
np
.
c_
))
allow_type
(
type
(
np
.
c_
))
import
pandas
as
pd
allow_type
(
pd
.
Series
)
allow_type
(
pd
.
Timestamp
)
allow_type
(
pd
.
DatetimeIndex
)
# XXX: pd.DataFRame has its own security thus disable until we can fully integrate it
#allow_type(pd.DataFrame)
allow_type
(
pd
.
MultiIndex
)
allow_type
(
pd
.
Index
)
allow_type
(
pd
.
core
.
groupby
.
DataFrameGroupBy
)
allow_class
(
pd
.
DataFrame
)
import
sklearn.linear_model
import
sklearn.linear_model
allow_class
(
sklearn
.
linear_model
.
LinearRegression
)
allow_class
(
sklearn
.
linear_model
.
LinearRegression
)
...
@@ -88,14 +76,10 @@ from RestrictedPython.Guards import full_write_guard
...
@@ -88,14 +76,10 @@ from RestrictedPython.Guards import full_write_guard
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
ndarray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
ndarray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
core
.
records
.
recarray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
core
.
records
.
recarray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
core
.
records
.
record
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
np
.
core
.
records
.
record
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
DataFrame
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
tseries
.
index
.
DatetimeIndex
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
core
.
indexing
.
_iLocIndexer
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
MultiIndex
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
Index
]
=
True
from
wendelin.bigarray.array_zodb
import
ZBigArray
from
wendelin.bigarray.array_zodb
import
ZBigArray
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
ZBigArray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
ZBigArray
]
=
True
allow_type
(
ZBigArray
)
allow_type
(
ZBigArray
)
from
wendelin.bigarray.array_ram
import
RAMArray
from
wendelin.bigarray.array_ram
import
RAMArray
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
RAMArray
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
RAMArray
]
=
True
allow_type
(
RAMArray
)
allow_type
(
RAMArray
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment