#MacBook Pro M1# The whole DataFrame cannot be printed in PyCharm in TensorFlow macOS 0.1a1

Code Block if name == 'main':
data = {
'gender': ['male', 'female', 'female', 'male', 'male'],
'name': ['Tom', 'Jerry', 'Jack', 'Rose', 'Lisa'],
'age': [20, 21, 25, 24, 29]}
df = pd.DataFrame(data, index=['one', 'two', 'three', 'four', 'five'],
columns=['name', 'gender', 'age'])
print(df)


error:

Traceback (most recent call last):
File "/Users/zjy/PycharmProjects/pythonProject1/main.py", line 20, in <module>
print(df)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/frame.py", line 744, in repr
self.tostring(
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/frame.py", line 883, in to
string
return formatter.tostring(buf=buf, encoding=encoding)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/io/formats/format.py", line 921, in to
string
return self.getresult(buf=buf, encoding=encoding)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/io/formats/format.py", line 520, in get
result
self.writeresult(buf=f)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/io/formats/format.py", line 844, in write
result
maxlen = Series(lines).str.len().max()
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/generic.py", line 11468, in stat
func
return self.reduce(
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/series.py", line 4236, in
reduce
return op(delegate, skipna=skipna, kwds)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/nanops.py", line 129, in f
result = alt(values, axis=axis, skipna=skipna,
kwds)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/pandas/core/nanops.py", line 873, in reduction
result = getattr(values, meth)(axis)
File "/Users/zjy/tensorflow/lib/python3.8/site-packages/numpy/core/methods.py", line 39, in amax
return umrmaximum(a, axis, None, out, keepdims, initial, where)
TypeError: int() argument must be a string, a bytes-like object or a number, not '
NoValueType'

However, the same code can be successfully run in Jupyter Notebook in the same environment.




#MacBook Pro M1# The whole DataFrame cannot be printed in PyCharm in TensorFlow macOS 0.1a1
 
 
Q