Code Monkey home page Code Monkey logo

Comments (6)

pwwang avatar pwwang commented on September 15, 2024 1

You are running code via raw Python REPL. See issues under:

https://github.com/pwwang/datar/issues?q=label%3A%22raw+python+repl%22+

Try to use ipython or save your code in a script and run it with python xxx.py.

Or you can also temporarily dismiss the warning by:

df >> mutate(z=f.x, __ast_fallback="piping")

from datar.

pwwang avatar pwwang commented on September 15, 2024

What's the environment where you ran your code, python file, python REPL, ipython, jupyter, etc?

from datar.

luifrancgom avatar luifrancgom commented on September 15, 2024

I am using Visual Studio Code version 1.84.2 (user setup) and running it in a conda environment.

from datar.

pwwang avatar pwwang commented on September 15, 2024

Did you run it from a Python REPL (by typing "python" from the command line and running you code from there)?

from datar.

luifrancgom avatar luifrancgom commented on September 15, 2024

I am going to reproduce what I exactly did and also I attach a screenshot. I apologize in advance if the problem is not related to the module.

luifrancgom@luifrancgom-HP-Compaq-6200-Pro-SFF-PC:~/Documents$ conda activate base
(base) luifrancgom@luifrancgom-HP-Compaq-6200-Pro-SFF-PC:~/Documents$ python
Python 3.10.9 (main, Mar  1 2023, 18:23:06) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datar import f
>>> from datar.dplyr import mutate
>>> from datar.tibble import tibble
>>> df = tibble(
...     x=range(4),  # or c[:4]  (from datar.base import c)
...     y=['zero', 'one', 'two', 'three']
... )
>>> df >> mutate(z=f.x)
/home/luifrancgom/anaconda3/lib/python3.10/site-packages/pipda/utils.py:89: PipeableCallCheckWarning: Failed to detect AST node calling `mutate`, assuming a piping call.
  warnings.warn(
        x        y       z
  <int64> <object> <int64>
0       0     zero       0
1       1      one       1
2       2      two       2
3       3    three       3

Screenshot from 2023-12-07 08-02-31

from datar.

luifrancgom avatar luifrancgom commented on September 15, 2024

Thank you for your help.

from datar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.