Skip to content

cannot read a file created from python  #304

@maverickg

Description

@maverickg

The python code used was from pandas's doc:

import pandas as pd
import numpy as np

df = pd.DataFrame({'a' : list('abc'),
                   'b' : list(range(1, 4)),
                   'c' : np.arange(3, 6).astype('u1'),
                   'd' : np.arange(4.0, 7.0, dtype='float64'),
                   'e' : [True, False, True],
                   'f' : pd.Categorical(list('abc')),
                   'g' : pd.date_range('20130101', periods=3),
                   'h' : pd.date_range('20130101', periods=3, tz='US/Eastern'),
                   'i' : pd.date_range('20130101', periods=3, freq='ns')})
print(df)

df.to_feather('example.feather')

But I cannot read it in R:

$ R -q -f read.R
>
> library(feather)
>
> df <- read_feather('example.feather')
Error in coldataFeather(x, i) : Not an INT64
Calls: read_feather ... as_data_frame.feather -> [ -> [.feather -> coldataFeather -> .Call
In addition: Warning message:
Coercing int64 to double
Execution halted

Python environment: 3.6, feather 0.4.0

R environment: R 3.3.1, feather 0.3.1, Rcpp 0.12.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions