hi-primus / optimus

:truck: Agile Data Preparation Workflows made easy with Pandas, Dask, cuDF, Dask-cuDF, Vaex and PySpark

Home Page:https://hi-optimus.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError while creating dataframe

diagnostikon opened this issue · comments

Hello, I don't know what I'm missing.

from optimus import Optimus
op = Optimus()
import pandas as pd
pdf = pd.DataFrame({'A': {0: 'a', 1: 'b', 2: 'c',3:'d'},
                    'B': {0: 1, 1: 3, 2: 5,3:7},
                       'C': {0: 2, 1: 4, 2: 6,3:None},
                       'D': {0:'1980/04/10',1:'1980/04/10',2:'1980/04/10',3:'1980/04/10'},
                       })

s_pdf = op.create.df(pdf=pdf)
s_pdf.table()

gives me, and I don't understand why

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File python3.9/site-packages/IPython/core/interactiveshell.py, in run_code:
Line 3437:  exec(code_obj, self.user_global_ns, self.user_ns)

In  [5]:
Line 8:     s_pdf = op.create.df(pdf=pdf)

TypeError: data_frame() got an unexpected keyword argument 'pdf'

Hi @diagnostikon,
A couple of questions?
Which Optimus version did you install?
How Do you make the installation?

Hello!
I installed with python3 -m pip install optimuspyspark

I will try with another python version, maybe 3.6

Closing this. @diagnostikon please free to open an issue if you need help