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
6cf10acf
Commit
6cf10acf
authored
5 years ago
by
iregon
Browse files
Options
Download
Email Patches
Plain Diff
Fixed bug passing default None skiprows
parent
a7bc9c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reader/import_data.py
reader/import_data.py
+2
-2
No files found.
reader/import_data.py
View file @
6cf10acf
...
...
@@ -61,10 +61,10 @@ def import_data(source,chunksize = None, skiprows = None):
if
isinstance
(
source
,
pd
.
io
.
parsers
.
TextFileReader
):
return
source
elif
isinstance
(
source
,
io
.
StringIO
):
TextParser
=
to_iterable_df
(
source
,
skiprows
=
None
,
chunksize
=
chunksize
)
TextParser
=
to_iterable_df
(
source
,
skiprows
=
skiprows
,
chunksize
=
chunksize
)
return
TextParser
elif
os
.
path
.
isfile
(
source
):
TextParser
=
to_iterable_df
(
source
,
skiprows
=
None
,
chunksize
=
chunksize
)
TextParser
=
to_iterable_df
(
source
,
skiprows
=
skiprows
,
chunksize
=
chunksize
)
return
TextParser
else
:
print
(
'Error'
)
...
...
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