当前位置:网站首页>Jupyter notebook basic knowledge learning
Jupyter notebook basic knowledge learning
2022-06-30 15:08:00 【A programmer who likes noodles】
For a long time , I always want to learn data
There is probably data analysis , Data mining and modeling , Data visualization , The web crawler is also a derivative
preparation
Books ( In addition )
python The data visualization part of the foundation from introduction to practice ( Take a look )- python Data mining and modeling practice
- python Data Science Handbook
Environmental Science
pycharm(kite The completion code )( Not commonly used )
jupyter notebook
No complement found matplotlib Methods , Bother ... It's time to memorize grammar
It's written on the web page , See a lot of people use
Some tips summarized by myself
Shortcut keys and magic commands
- Multiline comment
ctrl+/
- Multiline substitution
alt
The cursor is a cross drag - revoke
ctrl+z
- Fast operation
ctrl+Enter
Don't go to the next cell - Fast operation
shift+enter
Go to the next cell - Press
esc
Enter command mode , Box turns blueA
andB
Insert... Above and below cellshift+M
merge cellL
Show / Hide line numbers- Press
M
Turn into markdown Pattern , At this point, the text is parsed as markdown Language
- view help
shift+tab
?
help( The name of the function )
ctrl+shift
Move the cursor to selectfn+->
Move end of linefn+<-
Move the beginning of a lineesc+ Space
Scroll downesc+ Space +shift
Scroll upctrl+shift+-
segmentation cell%pwd
Show current directory%hist
All historical commands%who
All variables%reset
amount to matlab Medium clear all, Clear all variables%time
Code run time%timeit
Calculate the average execution time of the current code line%%timeit
Calculate current cell Run time of%matplotlib
Pictures are generated separately%matplotlib inline
Picture inline , Default parameters%load
Used to load local files%run
Used to run the
export file
import matplotlib.pyplot as plt
from easydl import clear_output
%matplotlib inline
squares = [1, 4, 9, 16, 25]
plt.plot(squares,linewidth=14)
# Export pictures
plt.savefig('./test1.png')# Current directory
plt.savefig('./test1.jpg')
plt.savefig('./test1.pdf')
plt.savefig('./image/test1.png')# subdirectories ( Must be created in advance )
边栏推荐
- Steps for commissioning of vertical machining center
- Solve the problem that codeblocks20.03 on win11 cannot run for the first time
- The crystal ball "data insight" was officially launched: insight into the change of consumption trend and the details of interactive experience
- Voice codec based on machine learning Agora silver: support high quality voice interaction at ultra-low bit rate
- 1150 traveling salesman problem (25 points)
- Sum of squares of two pointers
- Double pointer letter matching
- 高清机械原理 · 机械设计经典动图
- Machine learning feature selection
- Sum of CCF digits (full mark code + problem solving idea) 201512-1
猜你喜欢
Four solutions to cross domain problems
Complement (Niuke)
Matlab construction operation example
Lihongyi machine learning 2020 homework summary
CCF image rotation (Full Score code + problem solving idea) 201503-01
Sum of CCF digits (full mark code + problem solving idea) 201512-1
CCF call auction (full mark code + problem solving ideas + skill summary) 201412 - 3
Bye civil engineering, hello CS, can you change the certificate to the Blue Bridge Cup
CCF Z-scan (full mark code + problem solving ideas) 201412-2
Zero basic C language learning notes -- first introduction -- 2 data types & variables and constants
随机推荐
1134: Legal C identifier query
[extensive reading of papers] a delicious recipe analysis framework for exploring multi modal recipes with variable attributes
catkin_ Make reports an error, transfers the location of the workspace, and uses other people's workspace files to cause compilation errors
1130: find the first character that appears only once
Why do high precision CNC machining centers have errors? You should pay attention to these four reasons!
001 basic knowledge (unfinished)
Technology sharing | anyrtc service single port design
先锋期货安全么?现在期货开户都是哪些流程?期货手续费怎么降低?
How many questions can you answer for the interview of Mechanical Engineer?
Matlab judges the number of same purchases
CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
Programming of left-hand trapezoidal thread
Technology sharing | how to quickly realize audio and video online calls
001 data type [basic]
Examples of bubble sorting and matrix element screening in MATLAB
Lihongyi machine learning 2020 homework summary
Matlab draws the image of the larger function value of the two functions (super simple)
Matlab calculates the factorial sum of the first n numbers (easy to understand)
1018 public bike Management (30 points)
Average and maximum values of MATLAB matrix