有没有办法让NetBeans理解类型提示的PHPDoc(和旧的PHPStorm)格式?
PhpStorm正在使用常规的phpdoc块:
/* @var $object ClassName */
Netbeans / Eclipse / Zend风格(自2.1以来由PhpStorm支持)
/*
的差异
1)评论从/**
开始,而不是/* @var ClassName $object */
(因此它不遵循phpdoc约定)。
2)并且参数被交换(PhpStorm接受任何订单)
# Get the cumulative counts.
counts = pd.get_dummies(df['object']).cumsum()
# Rename the count columns as appropriate.
counts = counts.rename(columns=lambda col: col+'_count')
# Join the counts to the original df.
df = df.join(counts)