예제 #1
0
 def __call__(self, x):
     if isna(x):
         return str(x).replace('NA', _na_str, 1)
     else:
         return "'%s'" % datetime_as_string(x,
                                     unit=self.unit,
                                     timezone=self.timezone,
                                     casting=self.casting)
예제 #2
0
 def __call__(self, x):
     if isna(x):
         return str(x).replace('NA', _na_str, 1)
     else:
         return "'%s'" % datetime_as_string(x,
                                            unit=self.unit,
                                            timezone=self.timezone,
                                            casting=self.casting)
예제 #3
0
파일: arrayprint.py 프로젝트: 87/numpy
 def __call__(self, x):
     return "'%s'" % datetime_as_string(x,
                                 unit=self.unit,
                                 timezone=self.timezone,
                                 casting=self.casting)
예제 #4
0
 def __call__(self, x):
     return "'%s'" % datetime_as_string(x,
                                 unit=self.unit,
                                 timezone=self.timezone,
                                 casting=self.casting)