编辑熊猫系列指数

时间:2015-08-24 21:50:12

标签: python pandas

我正在尝试编辑系列//This is an example for if you want to have different data sent based on which app they choose. //I have an NSURL pointing to a local video in "videoUrl" //And I have NSData of a GIF in "gifData" - (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType { id item; //If it's Facebook, send a video if ([activityType isEqualToString:UIActivityTypePostToFacebook]) item = self.videoUrl; //if its Twitter, send a GIF else if ([activityType isEqualToString:UIActivityTypePostToTwitter]) item = self.gifData; //if its mail, send a GIF else if ([activityType isEqualToString:UIActivityTypeMail]) item = self.gifData; //If it's text, send a GIF else if ([activityType isEqualToString:UIActivityTypeMessage]) item = self.gifData; //If it's Facebook Messenger, send a video else if ([activityType isEqualToString:@"com.facebook.Messenger.ShareExtension"]) item = self.videoUrl; //Just default to a video else item = self.videoUrl; return item; } 的索引。我之前实际上问了一个类似的问题,并且能够使用答案。但是,使用answer to the question I asked略有不同的目的并不能给我正确的结果,因为此代码中的最后一个print语句显示bond.to_cash_flows().amounts与以前相同。我不知道如何尝试更改系列的指数。

bond.to_cash_flows().amounts.index

谢谢

0 个答案:

没有答案