科学网

 找回密码
  注册
[转载]Basic Concepts of Series and DataFrame in Pandas
高琳琳 2019-4-2 22:03
From:https://data36.com/pandas-tutorial-1-basics-reading-data-files-dataframes-data-selection/ https://www.geeksforgeeks.org/python-union-two-lists/ two types of data structures in pandas: Series and DataFrames (1) Series: a pandas S ...
个人分类: Python|1421 次阅读|没有评论
Python--sort numeric string
高琳琳 2017-12-13 08:33
If a list of numbers are stored in strings, please note that they are sorted as ASCAII. For example: aa = aa.sort() print aa The result is
个人分类: Python|1693 次阅读|没有评论
Python--Super usage
高琳琳 2017-12-13 08:26
I get some error that I can't figure out. Any clue what is wrong with my sample code? class B : def meth ( self , arg ): print arg class C ( B ): def meth ( self , arg ): & ...
个人分类: Python|1874 次阅读|没有评论
Pytorch--__init__, __call__ forward functions in a class
高琳琳 2017-11-9 07:25
The following is a segment of codes: ================================= from torch import nn class RNN(nn.Module): # nn.Module means the class of RNN extends the class of nn.Module def __init__(self, input_size, hidden_size, output_size): super(RN ...
个人分类: Python|3864 次阅读|没有评论
Pytorch--nested dictionary sorting
高琳琳 2017-11-9 00:56
My_dict = {'2007': {'4': feat11, '2': feat12, & ...
个人分类: Python|2103 次阅读|没有评论
new functions learned in python--Sep. 6, 2017
高琳琳 2017-9-7 09:24
1. img_path_lst = glob.glob(label_dir + '{}*.png'.format(pid)): Get the total paths of files named beginning with pid and ending with '.png'
个人分类: Python|1611 次阅读|没有评论

本页有 4 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 11:15

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部