Python3 pandas

OP #7903541
Lesenswert?

Hallo, obwohl ich Pandas von Python auf der neusten Version habe, bekomme ich immer den Fehler:

1
AttributeError: module 'pandas' has no attribute 'data_range'
1
import matplotlib.pyplot as plt
2
import pandas as pd
3
import numpy as np
4

5
dates = pd.date_range('2025', periods=100, freq='D')
6
df0 = pd.DataFrame({'x': np.random.normal(0.1, 1, 100).cumsum(),
7
                    'y': np.random.normal(0.3, 1, 100).cumsum()}, index=dates)
8
df1 = pd.DataFrame({'z': np.random.normal(0.2, 1, 100).cumsum()}, index=dates)
9
... ... ...

Das ganze läuft auf einem Raspberry-Pi.

Bei der Eingabe von

1
sudo apt-get install python3-pandas

bekomme ich die Ausgabe:

1
python3-pandas is already the newest version (1.1.5+dfsg-2).
Beitrag #7903543 wurde von einem Moderator gelöscht.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren