cppcoders / cpm-python Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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'
{'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
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'?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.