{"library":"pandas","install":[{"cmd":"pip install pandas","imports":["import pandas as pd\n\ndf = pd.DataFrame({'a': [1, 2], 'b': ['x', 'y']})\n# Modify using loc in one step\ndf.loc[df['a'] > 1, 'b'] = 'z'","ser = pd.Series(['a', 'b'])\nser.dtype  # dtype('str') in pandas 3.0\n\n# Check for string dtype in 3.0-compatible way:\nif pd.api.types.is_string_dtype(ser):\n    ..."]},{"cmd":"pip install pandas[performance]","imports":[]},{"cmd":"pip install pandas pyarrow","imports":[]},{"cmd":"pip install pandas[all]","imports":[]}]}