-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass arguments to read_csv #26
Comments
One option would be to muck about with the CSV headers and encode the type in them (eg. we'd store |
It also looks like Pandas supports comments in CSV files (at least to the extent of ignoring them on read) so we could write the types into an initial comment line in the file if that's easier than modifying the headers. |
Or we could store the types in the |
This is definitely a more robust solution than passing arguments to |
When using
bq.cached_read
on the query below, thesubpara
column is initially read as astr
, but when reading from the cache, it's read as anint
. Ideally, we'd be able to pass arguments like:dtype={'subpara': str}
topd.read-csv
.The text was updated successfully, but these errors were encountered: