Pre-recorded question

Question #148
How to create an empty dataframe with a given size in Python?
Answer

Use the following to create an empty dataframe with a given size (nRows x nCols) in Python / Pandas:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))

5 events in history
Answer by Alphonsio 08/27/2020 at 05:27:04 PM

Use the following to create an empty dataframe with a given size (nRows x nCols) in Python / Pandas:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))

Answer by Alphonsio 08/27/2020 at 03:07:19 PM

Use the following to create an empty dataframe with a given size (nRows x nCols) in Python / Pandas:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))

Answer by Alphonsio 08/27/2020 at 03:06:22 PM

Use the following to create an empty dataframe in Python / Pandas:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))

Answer by Alphonsio 08/27/2020 at 03:06:05 PM

Use the following to create an empty Pandas dataframe in Python:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))

Question by Alphonsio 08/27/2020 at 03:04:13 PM
How to create an empty dataframe with a given size in Python?
# ID Query URL Count

Icons proudly provided by Friconix.