Skip to content

Commit

Permalink
test files
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandolby committed Feb 16, 2021
1 parent 3ac9aa1 commit 3461b98
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions com.ibm.wala.cast.python.test/data/np_shim.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nan = -1
33 changes: 33 additions & 0 deletions com.ibm.wala.cast.python.test/data/pandas_shim.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
def isnull(x):
return False;

class DataFrame():
def __init__(self, x):
self.x = x

def to_html(self, border=None):
return self.x

class Series():
def __init__(self, x):
self.x = x

def sum():
return 0

class Categorical():
def __init__(self, x):
self.dtype = "type"

class DecimalArrayWithoutFromSequence():
def foo(self):
print('a')

class DecimalArrayWithoutCoercion():
def foo(self):
print('b')

class MultiIndex():
@staticmethod
def from_tuples(a, names):
return a

0 comments on commit 3461b98

Please sign in to comment.