We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a2af7 commit 7b6e793Copy full SHA for 7b6e793
pandas/core/frame.py
@@ -6609,10 +6609,10 @@ def get_dtype(dataframe, column):
6609
if isinstance(result, Series):
6610
results = np.append(results, result.values)
6611
else:
6612
- for i in range(result.shape[0], results.shape[0]):
6613
- result.loc[i, :] = np.nan
6614
- for i in range(results.shape[0], result.shape[0]):
6615
- results.loc[i, :] = np.nan
+ for k in range(result.shape[0], results.shape[0]):
+ result.loc[k, :] = np.nan
+ for k in range(results.shape[0], result.shape[0]):
+ results.loc[k, :] = np.nan
6616
results = pandas.concat([results, result], axis=1)
6617
6618
0 commit comments