Coder Social home page Coder Social logo

cpm-python's People

Contributors

sudofix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cpm-python's Issues

3 Predecessors

If user insert three "pr" like this.
A,-,12
B,-,9
C,A,10
D,B,10
E,B,24
F,A,10
G,C,35
H,D,40
I,A,15
J,EGH,4
K,FIJ,6

repo gives:

A B C D E F I G H J L K Traceback (most recent call last):
  File "C:\Users\Yunus\PycharmProjects\scientific\venv\lib\site-packages\IPython\core\interactiveshell.py", line 3437, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-fcc47e65dd13>", line 1, in <module>
    runfile('C:/Users/Yunus/PycharmProjects/scientific/cpm-python/main.py', wdir='C:/Users/Yunus/PycharmProjects/scientific/cpm-python')
  File "C:\Users\Yunus\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\203.7717.65\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Users\Yunus\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\203.7717.65\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:/Users/Yunus/PycharmProjects/scientific/cpm-python/main.py", line 85, in <module>
    ls.append(atts[ord(data.iloc[s, 1][k]) - 65]["EF"])
KeyError: 'EF'

pygraphviz not installing

Path
A B C D E F G H I

{'Name': 'A', 'DU': 7, 'ES': 0, 'EF': 7, 'LF': 7, 'LS': 0, 'SK': 0}
{'Name': 'B', 'DU': 9, 'ES': 7, 'EF': 16, 'LF': 16, 'LS': 7, 'SK': 0}
{'Name': 'C', 'DU': 3, 'ES': 7, 'EF': 10, 'LF': 19, 'LS': 16, 'SK': 9}
{'Name': 'D', 'DU': 8, 'ES': 16, 'EF': 24, 'LF': 24, 'LS': 16, 'SK': 0}
{'Name': 'E', 'DU': 5, 'ES': 10, 'EF': 15, 'LF': 24, 'LS': 19, 'SK': 9}
{'Name': 'F', 'DU': 4, 'ES': 10, 'EF': 14, 'LF': 24, 'LS': 20, 'SK': 10}
{'Name': 'G', 'DU': 2, 'ES': 24, 'EF': 26, 'LF': 26, 'LS': 24, 'SK': 0}
{'Name': 'H', 'DU': 1, 'ES': 26, 'EF': 27, 'LF': 27, 'LS': 26, 'SK': 0}
{'Name': 'End', 'DU': 0, 'ES': 27, 'EF': 27, 'LF': 27, 'LS': 27, 'SK': 0}

Traceback (most recent call last):
File "C:\Users\shehab\AppData\Local\Programs\Python\Python39\lib\site-packages\networkx\drawing\nx_agraph.py", line 281, in pygraphviz_layout
import pygraphviz
ModuleNotFoundError: No module named 'pygraphviz'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:\DRIVE\pythons\frame\alpha\2D FRAME\cpm-python-master\main.py", line 127, in
pos = nx.nx_agraph.graphviz_layout(G2, prog='dot')
File "C:\Users\shehab\AppData\Local\Programs\Python\Python39\lib\site-packages\networkx\drawing\nx_agraph.py", line 239, in graphviz_layout
return pygraphviz_layout(G, prog=prog, root=root, args=args)
File "C:\Users\shehab\AppData\Local\Programs\Python\Python39\lib\site-packages\networkx\drawing\nx_agraph.py", line 283, in pygraphviz_layout
raise ImportError("requires pygraphviz " "http://pygraphviz.github.io/") from e
ImportError: requires pygraphviz http://pygraphviz.github.io/

Repl Closed

AttributeError: 'DataFrame' object has no attribute 'append'.

It appears that DataFrame.append has been deprecated in pandas version 2.0.

Version:

  Downloading pandas-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB)

Traceback:

Traceback (most recent call last):
  File "/home/dbezborodov/src/cpm-python/main.py", line 30, in <module>
    data = data.append(df)
           ^^^^^^^^^^^
  File "/home/dbezborodov/src/cpm-python/venv/lib64/python3.11/site-packages/pandas/core/generic.py", line 5989, in __getattr__
    return object.__getattribute__(self, name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?

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.