chemcoord.xyz_functions.concat

chemcoord.xyz_functions.concat(cartesians, ignore_index=False, keys=None)[source]

Join list of cartesians into one molecule.

Wrapper around the pandas.concat() function. Default values are the same as in the pandas function except for verify_integrity which is set to true in case of this library.

Parameters:
  • cartesians (sequence) – A sequence of Cartesian to be concatenated.
  • ignore_index (sequence, bool, int) – If it is a boolean, it behaves like in the description of pandas.DataFrame.append(). If it is a sequence, it becomes the new index. If it is an integer, range(ignore_index, ignore_index + len(new)) becomes the new index.
  • keys (sequence) – If multiple levels passed, should contain tuples. Construct hierarchical index using the passed keys as the outermost level
Returns:

Return type:

Cartesian