pandas: powerful Python data analysis toolkit - 0.7.3framework/Versions/7.3/lib/python2.7/urllib.pyc in open_http(self, url, data) 342 if realhost: h.putheader(’Host’, realhost) 343 for args in self.addheaders: h.putheader(*args) --> 344 h.endheaders(data) 345 """Connect to the host and port specified in __init__.""" 756 self.sock = socket.create_connection((self.host,self.port), --> 757 self.timeout, self.source_address) 758 759 if self._tunnel_host: /Library/Frameworks/EPD64 pyc in create_connection(address, timeout, source_address) 551 host, port = address 552 err = None --> 553 for res in getaddrinfo(host, port, 0, SOCK_STREAM): 554 af, socktype, proto, canonname, sa0 码力 | 297 页 | 1.92 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.15and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. This type is very similar to how Timestamp works [121]: df = pd.DataFrame({’host’:[’other’,’other’,’that’,’this’,’this’], .....: ’service’:[’mail’,’web’,’mail’,’mail’,’web’], .....: ’no’:[1, 2, 1, 2, 1]}).set_index([’host’, ’service’]) .....: In [122]: agg(’idxmax’) In [123]: df_count = df.loc[mask[’no’]].reset_index() In [124]: df_count Out[124]: host service no 0 other web 2 1 that mail 1 2 this mail 2 7.5.1 Expanding Data Alignment and to-date0 码力 | 1579 页 | 9.15 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 0.15.1and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. This type is very similar to how Timestamp works [121]: df = pd.DataFrame({’host’:[’other’,’other’,’that’,’this’,’this’], .....: ’service’:[’mail’,’web’,’mail’,’mail’,’web’], .....: ’no’:[1, 2, 1, 2, 1]}).set_index([’host’, ’service’]) .....: In [122]: agg(’idxmax’) In [123]: df_count = df.loc[mask[’no’]].reset_index() In [124]: df_count Out[124]: host service no 0 other web 2 1 that mail 1 2 this mail 2 7.5.1 Expanding Data Alignment and to-date0 码力 | 1557 页 | 9.10 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.3.2StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.21.1 Parsing You can construct a Timedelta { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3509 页 | 14.01 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.3.3StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.21.1 Parsing You can construct a Timedelta { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3603 页 | 14.65 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.3.4StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.21.1 Parsing You can construct a Timedelta { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3605 页 | 14.68 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.2.3StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 800 Chapter 2. User Guide pandas: powerful Python { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3323 页 | 12.74 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.2.0StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.20. Time deltas 801 pandas: powerful Python { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3313 页 | 10.91 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.4.2StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.21.1 Parsing You can construct a Timedelta { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3739 页 | 15.24 MB | 1 年前3
pandas: powerful Python data analysis toolkit - 1.4.4StringIO. The string could be a URL. Valid URL schemes include http, ftp, S3, and file. For file URLs, a host is expected. For instance, a local file could be file ://localhost/path/to/table.json • typ : type and behaves in a similar manner, but allows compatibility with np.timedelta64 types as well as a host of custom representation, parsing, and attributes. 2.21.1 Parsing You can construct a Timedelta { .....: "host": ["other", "other", "that", "this", "this"], .....: "service": ["mail", "web", "mail", "mail", "web"], .....: "no": [1, 2, 1, 2, 1], .....: } .....: ).set_index(["host", "service"])0 码力 | 3743 页 | 15.26 MB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4













