Closed sharpe5 closed 7 years ago
Hello,
Thanks for opening an issue. I want to find and fix this issue, but in the meantime, are you able to try using pip?
Just now, I created a new virtualenv with python version 3.6. I was able to install and run examples of dplython using pip
.
I'll look into what's going on with installing using setup.py install
Note that I may be a little slow to fix issues at the moment as I'm finishing up a PhD and trying to find a job!
Thanks, Chris
I have installed dplython using pip in anaconda (spyder v 3.6). however, when i try to run a simple "select" function I get the following error.
select(trans_data, X.Date)
Traceback (most recent call last):
File "
File "C:\Users\anuj_dwivedi\AppData\Local\Continuum\Anaconda3\lib\site-packages\dplython\dplython.py", line 132, in DplyrFcn return data_arg >> fcn_to_apply
TypeError: unsupported operand type(s) for >>: 'DataFrame' and 'function'
############ with pipinng ######################
trans_data >> select(X.Date) Traceback (most recent call last):
File "
TypeError: unsupported operand type(s) for >>: 'DataFrame' and 'function'
@dwivedianuj60 It looks like that is a separate issue. I believe in your case trans_data
is a pandas DataFrame. You need to cast trans_data
to a DplyFrame
before you can use the dplython syntax on it. You can do this simply through:
trans_data = DplyFrame(trans_data)
I tried the install using "pip", and everything is working perfectly.
I'm closing off this issue.
Thanks for the excellent work on this!
I attempted to import dplython:
This error was displayed:
The dplython module appears to be installed, as I can see it in the list of packages in PyCharm. However, I cannot see it in the list of packages in Anaconda, which seems suspicious.
To install, I checking out the git repository, then used:
Result: