Skip to content
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

ENH: .from_dataframe() convenience function #1155

Closed
jreback opened this issue Sep 21, 2017 · 0 comments
Closed

ENH: .from_dataframe() convenience function #1155

jreback opened this issue Sep 21, 2017 · 0 comments
Assignees
Labels
feature Features or general enhancements
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Sep 21, 2017

In [7]: import ibis

In [8]: df = pd.DataFrame({'A': [1, 2, 3]})

In [9]: t = ibis.pandas.connect({'df': df}).table('df')

In [10]: t.A+1
Out[10]: 
ref_0
PandasTable[table]
  name: df
  schema:
    A : int64

Add[int64*]
  left:
    A = Column[int64*] 'A' from table
      ref_0
  right:
    Literal[int8]
      1

would be nice to write this like

from ibis.pandas.api import from_dataframe
t = from_dataframe(pd.DataFrame(.....))

makes interop with pandas that much easier

@jreback jreback added the feature Features or general enhancements label Sep 21, 2017
@jreback jreback added this to the 0.11.3 milestone Sep 21, 2017
@cpcloud cpcloud self-assigned this Sep 21, 2017
@jreback jreback modified the milestones: 0.12, 0.13 Oct 30, 2017
jreback added a commit to jreback/ibis that referenced this issue Dec 20, 2017
jreback added a commit to jreback/ibis that referenced this issue Jan 12, 2018
jreback added a commit to jreback/ibis that referenced this issue Jan 25, 2018
jreback added a commit to jreback/ibis that referenced this issue Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants