Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
brivas
mdf_reader
Commits
0f4e44f6
Commit
0f4e44f6
authored
5 years ago
by
iregon
Browse files
Options
Download
Email Patches
Plain Diff
Removed missing_value kwarg from object_to_object
parent
96591324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/converters.py
common/converters.py
+3
-3
No files found.
common/converters.py
View file @
0f4e44f6
...
...
@@ -25,7 +25,7 @@ from .. import properties
# return data.astype(self.dtype, casting = 'safe')
# safe casting specifies, otherwise converts np.nan to some real number depending on dtype.
class
df_converters
():
def
__init__
(
self
,
dtype
):
...
...
@@ -43,7 +43,7 @@ class df_converters():
except
:
return
data
def
object_to_object
(
self
,
data
,
missing_value
=
None
,
disable_white_strip
=
False
):
def
object_to_object
(
self
,
data
,
disable_white_strip
=
False
):
# With strip() an empty element after stripping, is just an empty element, no NaN...
if
not
disable_white_strip
:
return
data
.
str
.
strip
()
...
...
@@ -65,4 +65,4 @@ for dtype in properties.numeric_types:
converters
[
'datetime'
]
=
df_converters
(
'datetime'
).
object_to_datetime
converters
[
'str'
]
=
df_converters
(
'str'
).
object_to_object
converters
[
'object'
]
=
df_converters
(
'object'
).
object_to_object
converters
[
'key'
]
=
df_converters
(
'key'
).
object_to_object
\ No newline at end of file
converters
[
'key'
]
=
df_converters
(
'key'
).
object_to_object
This diff is collapsed.
Click to expand it.
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